made Projectile class

rearranged a lot of code