modified Pathfinder.c as platform 1