Move single card program to card.py