Create a 'go to top' block
We're going to create a custom block of our own that we'll use to move the basketball up to a random place at the top of the screen.
Go to the 'More Blocks' toolbox and click the 'Make a Block' button. This will open up a box where you can enter the name of your new block, call it 'go to top' and click the 'OK' button.
This will create a go to top block in the 'More Blocks' toolbox and adefine go to top block in our code area. The code blocks we put under the define go to top block will be the instructions to move the basketball up to the top of the screen.
You should test your code after each step to make sure it works. If there's a problem with it then try and find the piece of code that's causing the problem and fix it.'