News

Sounds like you need a depth-first search with backtracking. My instinct is to forget about iterative deepening and just use backtracking to enumerate all possible paths.