last modifications in ball and BallThread