public void transferAllCardTypeTo(Deck d, String type)
    {
        ArrayList<card> tmp = new ArrayList<card>();
        for(card c : deck)
        {
            if(c.getType().equals(type))
            {
                //lazy fix
                d.addCard(c);
                tmp.add(c);
            }
        }
        
        for(card c : tmp)
        {
            deck.remove(c);
        }
    }