update function add_game