added digging and retrying until moving