Add private methods CheckCoord and Explode to prevent code repeating. Refactor DetonateMine.