Create BouncingBall.java

Bounces a ball when clicked and bounces off of the walls of the window. I drew a rectangle to indicate the box. It stops when clicked again. This only works if there is a System.out.println("Text") in between the loops. Why does it only work when that line is there? Theoretically it should work without it but it doesn't.