Added a visited field to the class, along with getters and setters. Is not implemented elsewhere, and still needs comments.