add some code for game_result