public int compareTo(HandRank handRank) {
        int compare = getRank().compareTo(handRank.getRank());
        if (compare != 0) {
            return compare;
        }
        Cards myHand = getHand();
        Cards theirHand = handRank.getHand();
        for (int i = 0; i < HAND_SIZE; i++) {
            if (myHand.size() > i) {
                Card card1 = myHand.get(i);
                Card card2 = theirHand.get(i);
                compare = card1.compareTo(card2);
                if (compare != 0) return compare;
            }
        }
        return 0;
    }