moved game code to game.py