IT WORKS!!! Added unvisited list for debugging.

I made sure that if children are not added when expanding, it's because
that state's already excluded the edges that could complete the cycle.