Updated recursive function so robots wouldn't teleport after they found
a cavern