If we cant find anything to unlock then break out of the while so we do not have an infinite loop (freeze)