edited basic ball bounce code to look better