Move unique number into the if statement in markExplored