Create cards.py

This was the class supplied to us, we weren't allowed to change it.