Refactoring game to simplify game loop