In each move, you select a stick and remove only the front beads of the same color. The removed beads go upward and are placed into a matching jar when possible, otherwise they are stored in the holding slots below.
Some sticks cannot be used while their output is blocked by another stick.