You can use IntensePathfinding or search pathfinding algorithm such as Djikstra or AStar(A*) on google...