I'm guessing that the part we see is some kind of see-saw that teeters with the added weight of a marble. I would also guess that the horseshoe-looking piece has a tab of some kind that blocks the marbles until it teeters to the "up" position, allowing a marble to roll under the tab )I think I can almost see a tab there.)
I've built a few marble runs, and for me there is always a lot of trial-and-error to get the mechanisms to work right. Good luck and have fun.