Refactored projectile creation and added explosion type