Refactored to use a separate Graphics context for each card.