@Override
    public int compare(FiveCardPokerHand o1, FiveCardPokerHand o2) {
        if (o1.getHandType() == null) {
            o1.setHandType(determineHandType(o1));
        }
        if (o2.getHandType() == null) {
            o2.setHandType(determineHandType(o2));
        }

        return o2.getHandType().getValue() - o1.getHandType().getValue();
    }