Updated visited logic - fixes #15
Merge pull request #16 from adaptlearning/issue/15

Updated visited logic