Well at least you have the engine running now. However, there is still a problem. You can see the lights go out momentarily when the engine goes over the switch.
I'd look at both center rail pickups on the engine. Maybe one is non longer connected (wire broke?).
Just an idea.