Don't let the ball hit the red line. Your panel follows the mouse pointer.
Thanks to a tutorial for helping at the start. Lol this is old