Change ticks to use Dijkstra's algorithm for propigation