Cleaned up a bit and added class declaration for projectile