added the possibility of clicking on a mine to the detonateBlock method