Changed allowedMoves ordering