Collision detection and some memory managements for projectiles.