private static Hand isFourOfAKind(Card[] allCards) {
        Hand h = new Hand();
        int cardsALike = 0;
        ArrayList<Card> fourALike = new ArrayList<>();

        for (int i = 0; i < allCards.length; i++) {
            Card firstCard = allCards[i];
            for (int j = 0; j < allCards.length; j++) {
                Card secondCard = allCards[j];
                if (firstCard.getNumber() == secondCard.getNumber() && firstCard.getColour() != secondCard.getColour()) {
                    if (fourALike.contains(firstCard)) {
                        fourALike.add(secondCard);
                        cardsALike++;
                    } else if (fourALike.isEmpty()) {
                        fourALike.add(firstCard);
                        fourALike.add(secondCard);
                        cardsALike = cardsALike + 2;
                    }
                }
            }
            if (cardsALike == 4) {
                ArrayList<Card> cardsRemaining = new ArrayList<>();
                for (int k = 0; k < allCards.length; k++) {
                    Card cardsUnLike = allCards[k];
                    if (fourALike.get(0).getNumber() != cardsUnLike.getNumber()) {
                        cardsRemaining.add(cardsUnLike);
                    }
                }
                Card[] temp = findHighestCards((listToArray(cardsRemaining)), 1);
                fourALike.add(temp[0]);
                h.setHand((listToArray(fourALike)));
                h.setIndex(Hand.FOUR_OF_A_KIND);
            } else {
                cardsALike = 0;
                fourALike = new ArrayList<>();
            }
        }
        return h;
    }