added game_class and render function