Turing Tumble Community

Puzzle 57 solution - 30 parts, terminates in 3 or fewer balls

While not the least amount of parts, this solution only queries each bit once, resulting in at most 3 balls being pulled.

This does not terminate, though, if all three ramps are flipped left.

This is fixed in the following: