I made a solution that looks like this:
It uses a lot of parts but I like the various ways it can unfold depending on whether the bottom bit flips after bit 2 is changed, after bit 3 is changed, after both changes or not at all.
I also really like the two bits I added that store whether bits 4 and 5 have already been changed or not. Both the blue ball and the red ball can change bit 4.
Here’s the simulator version. Just note that one of the gears keeps moving out of position in the shared version: jstumble
Thanks
Alex