Used the distance formula to get ball to bounce