Account for duplicate node with shallower depth.
Use hash table for closed list.
BFS and DFS work.