private boolean isFlush(List<Card> cards) {
        Card first = cards.get(0);
        for (int i = 1; i < cards.size(); i++) {
            if (first.getSuit() != cards.get(i).getSuit()) {
                return false;
            }
        }
        return true;
    }