bit of refactoring and comments added to game.py