add run_game function