pathfinding mechanizm new. Learning & testing purposes