function dig()
while turtle.detect() do
turtle.dig()
turtle.forward()
end
turtle.turnleft()
turtle.forward()
turtle.turnleft()

dig()
end
dig()

