modified game.py