It's basically self explanatory. Try not to let the ball hit the floor. It's not the greatest programming, but I hope it works.
Thanks to @Popcorn995 @TheSlyFox For some of the programming help.