while true do turtle.turnRight() if turtle.detect() then turtle.turnLeft() if turtle.detect() then turtle.turnLeft() end end turtle.forward() end