private boolean valueIncreasesByOne(List<Card> cards, int startingIndex) {
        int previousRankValue = cards.get(startingIndex).getRank().getValue();
        for (int i = startingIndex + 1; i < cards.size(); i++) {
            int nextRankValue = cards.get(i).getRank().getValue();
            if (nextRankValue != previousRankValue + 1) {
                return false;
            }
            previousRankValue = nextRankValue;
        }
        return true;
    }