added offline mode to game.py