Modified GameStateManager class to a singleton object.