I have a program, which is of bouncing balls running through threads.

My goal is to be able to pause each thread by clicking on the ball as it moves on screen, and resume when clicked again.

I...