private ArrayList<Card> returnTwoPairsSetup()
    {

        ArrayList<Card> setup = new ArrayList<>();
        if (compareCardFigures(0, 1) && compareCardFigures(2, 3))
        {
            @SuppressWarnings("unchecked")
            ArrayList<Card> handCopy = (ArrayList<Card>) cards.clone();
            setup.addAll(handCopy);
            setup.remove(4);
        }

        return setup;
    }