while true do
  if turtle.forward() ~= true then
    turtle.up()
  end
end
