thanks to @Hello-I-am-blank for help with coding and also @The_True_Cube for some of the code for the ball.