add a step from pPath to (dx,dy), return 1 if successful, and update the frontier/visited nodes accordingly
Definition at line 202 of file path.cpp.