public void transferCard(Deck d, int index)
    {
        if(deck.isEmpty() == false)
        {
            card tmp = deck.get(index);
            deck.remove(index);
            d.addCard(tmp);
        }
    }