change game class to singleton