add save profile_data function to game class