Added legalMoves