refine the code, abstract ball demo into BallDemoScene.lua