Refactoring so there is only one setInterval for all projectiles.