Controlling model tram

Might be a bridge too far just now. I'm trying to focus on the challenge of motor controllers and relays, which I've still not solved.