fixing bug on collision so the projectile doesn't jump