It looks like you've misinterpreted the problem.

The marble game itself is a state machine, with 8 different states, one for each possible combination of L or R for each xn.

Let us label the...