Changing the way of handling game instance in the code