I think what's a little misleading is that the permutations don't, in general, permute - but the setup forces them to. For example, using your example, you posted a group of permutations, and only some of them can be arranged in either order (the first pair on separate "strands" of the group of 2 can be rearranged, but must be performed before any permutations "lower" on the strand
Rather, I shouldn't say forces them to permute, but forces them to be performed in a certain order; there's a partial order on the grid (A, B), and "smaller" permutations need to be performed later.
So, using the image as an example: Yes, we can add the switches in any order. But they'll still be performed based on that hierarchy. The "game states" seem to be parameterized by $2^{|A| \times |B|}$, the set of switches we've toggled.