modify the game snippet function sequence