private void renderDeck(Graphics2D g) {
        Stack<Card> deck = game.getDeck();
        Card topCard = deck.size() == 0 ? null : deck.peek();

        double x = X_BOARD_OFFSET;
        double y = DECK_Y;

        g.setColor(Color.white);
        g.drawString(deck.size() + " cards in deck", (float) x, (float) y - 1);

        if (topCard != null && topCard.isHidden()) {
            topCard = null;
        }
        if (topCard == null) {
            renderCard(null, g, x, y);
        } else {
            renderUpsideDownCard(g, x, y, topCard.isBlueBack());
        }
    }