Refactored codes in CheckBlowUpTiles.