Update engine.py

add path finder reset.