A quick fix for the pathfinding algorithm.
This is a quick fix to some of the pathfinding bugs:
The pathfinding algorithm now properly links nodes and no longer forces enemies to get stuck trying to phase through walls.
The enemies' AI now tries to dodge small obstacles to prevent getting stuck on them. This is still not perfect, so sometimes they can still get stuck if the objects are too clumped up, but it's now way less common.