improved pathfinding and fixed a bug with the spawners introduced in my previous commit