fn merge_stages(
    ts: &ControlTrafficSignal,
    i: &Intersection
) -> Option<ControlTrafficSignal>