fixed bug where search was returning to visited nodes
still need to fix redundant results: [0, 4, 5] vs. [5, 4, 0]