My first tournament solution i hope its ok at least pretty sure there are way to many cycles