implemented basic projectile mechanism