Create game_function