Projectile motion problem