Change the way alreadyExplored is being tracked.