added pathfind algorithms