Just click the green flag and watch the ball bounce off the walls. (You can adjust the X vs Y speeds.)
For readability, I usually write code with a lot of intermediate variables and steps. Today I decided to take a large block of code and squeeze it into one line. (I prefer the way I usually do it!) I've included the original code.