Move the global variable to the context class
Split game into game & gamestate