Added flag to turn off A* pathing