Refactored dfs code to have go back / go forward in search space bound via flet.  Cuts down on verbatim code repetition.