Ryszard used a router pantograph to guide the router though the shapes for the tracks.
More marble machines by Ryszard: