added checks in dijkstra and walker, improved collision check with world border