added the condition for which the ball flies off of the ramp
a bit of cleaning