Implement breadth-first-search and fire event on click
Remove all rails and move to js. Animate paths with flow.