Won't start one day and fires up first crank next day

I don't understand the red and the orange wires tied to the brown wire of the resistor ?
brn is ign2 from ign switch, red is to elect choke, org to coil. Ign2 supplies coil during cranking I believe.