Refactored the code handling expansion of the explosion to reduce line length.