non-broken pathfinding

I've got it so that pathfinding doesn't break the game when it's
together...I think...