new branch, updated pathfinding algorithm with increased performance nearly 600 percent