complete path_solver.py and test_path_solver