As you proceed with your tunnel, you have to correct the mining direction by prospecting the walls, floor and ceiling of the mine: search for the minimum radius where you prospect the ore in the direction of the mine. prospect left and right walls with the same radius.