fixed memory error in events class and incomplete type error in game_class and events_class