I challenge you to make the following changes to you logic, so that the Play window can be modified to any full-pane sizes, and still work accurately.

1) Use the Rendering preferences to modify the play width and height to a different standard size.

2) Modify the code to prompt your user to click somewhere that will allow you to compute the value of any variables that you may need. Use any fixed variables that you may need only in this portion of your code.

3) Use those newly created variables along with the distance from top/left to control the ball movement.

I challenge you to make the following changes to you logic, so that the Play window can be modified to any full-pane sizes, and still work accurately.

1) Use the Rendering preferences to modify the play width and height to a different standard size.

2) Modify the code to prompt your user to click somewhere that will allow you to compute the value of any variables that you may need. Use any fixed variables that you may need only in this portion of your code.

3) Use those newly created variables along with the distance from top/left to control the ball movement.