Fix bugs in game.py