Write out visted only if they are good, not on every move.