private static int search1(Cards[] hands, Cards board, int numhands, int[] wins, int[] ties, Cards remaining) {
        int total = 0;
        for (Card card1 : remaining) {
            board.add(card1);
            total = rankHands(hands, board, numhands, wins, ties, total);
            board.remove(card1);
        }
        return total;
    }