Cards and game logic. Hopefully the python is right