add a seperate quit function to GameApp