added projectile motion of ball