Breadth-first search implemented.

Pathfinding algorithm can be chosen under a public variable of
pathfinder object.