logika pro hledani cesty presunuta do Pathfinder
Pathfinder refactoring