public Card drawTop() { if (deck.size() == 0) { deck = discardPile; discardPile = new Cards<Card>(); shuffle(); } return deck.removeFirst(); }
public int size() { return deck.size() + discardPile.size(); }