Update game.py

some error checking