Modular Marble Maze

I had a thought about how to create a marble maze that is placed onto a peg board, using a few simple pieces that can be shifted around to change the maze layout.
As usual, this is a parametric design in OpenSCAD, so a few parameters can be changed depending on desires.
Note: This is an untested concept design. YMMV.