private Card findCardThatBeatsIt(Card card) {
        Card move = null;
        int num = -1;

        for (int i = 0; i < cards.size(); i++) {
            if (((cards.get(i).getType() > card.getType()) && (cards.get(i).getSuit() == card.getSuit()))
                    || ((cards.get(i).getSuit() == trump) && (card.getSuit() != trump))) {
                move = cards.get(i);
                num = i;
            }
        }

        if (num != -1) {
            cards.remove(num);
        }

        return move;
    }