For those thinking it’s possible only in a video game … here it is, a great 2D marble game
Kaplas, magnets, additional balls, pencils, chopsticks, forks, spinners … and spaghetti.
Very smart usage of simple elements to emulate complex actuators

Be also sure to check his video dedicated to spinners:

2 thumbs up! That guy deserves a place in many entertainment manufacturers! Very inspiring for mech designs too.