@Override
    public Node move(String playerId, Rules rules, Board board) {
        List<Node> validMoves = rules.getValidMoves(playerId);

        Node highestNode = null;

        for (Node n : validMoves) {
            if (highestNode == null ||
                    highestNode.getYCoordinate() > n.getYCoordinate() ||
                    highestNode.getYCoordinate() == n.getYCoordinate() && highestNode.getXCoordinate() > n.getXCoordinate()) {
                highestNode = n;
            }
        }

        return highestNode;
    }