Make not to use append_char in depth_first_search_
Make find_all_paths not to use append_char