"BallEngine" script (update)