Sneaky recursive algorithm to find ore