public void giveCard(Card card, CardPile drawPile) {
        if (hand.size() >= MAX_CARDS) {
            return;
        }
        hand.add(card);

        if (component != null) {
            component.addCard(card, drawPile);
        }
    }