public boolean Hand1BeatsHand2(String hand1, String hand2) {
        Hand firstHand = new Hand(hand1);
        Hand secondHand = new Hand(hand2);

        PokerHandValue firstHandRank = GetHandRank(firstHand);
        PokerHandValue secondHandRank = GetHandRank(secondHand);

        while (firstHandRank.compareTo(secondHandRank) == 0 && !firstHand.toString().equals(""))
        {
            for (int i = 0; i < firstHandRank.Value.length(); i++) {
                firstHand = firstHand.RemoveAllCardsOfValue(firstHandRank.Value.substring(i, i + 1));
                secondHand =  secondHand.RemoveAllCardsOfValue(firstHandRank.Value.substring(i, i + 1));
            }

            if(firstHand.toString().equals("") || secondHand.toString().equals(""))
                return false;

            firstHandRank = GetHandRank(firstHand);
            secondHandRank = GetHandRank(secondHand);
        }

        return !(firstHand.toString().equals("") && secondHand.toString().equals("")) && firstHandRank.compareTo(secondHandRank) > 0;

    }