search_.wdl handles the pathfinding, it is not documented like in a tutorial though....
Its a type of A*
If you would see my current version, it would confuse you even more, as it was designed as server-client code, without using entities on the serverside. Everything is done with arrays.