Compare() does not cater to checking the rank of FULL HOUSE private boolean compare(Combination previousCombination, Combination currentCombination, int numberOfCard) { if (currentCombination.getCardByIndex(numberOfCard).getValue() > previousCombination.getCardByIndex(numberOfCard).getValue()) { return true; } else if (currentCombination.getCardByIndex(numberOfCard).getValue() == previousCombination.getCardByIndex(numberOfCard).getValue()) { if (currentCombination.getCardByIndex(numberOfCard).getSuit() > previousCombination.getCardByIndex(numberOfCard).getSuit()) { return true; } else { return false; } } else { return false; } }