I don't quite understand what the idea was. But perhaps it is worth adding a restriction on the passage of shapes in color and shape. And when you hold down S and C, the color and shape change all the time, it is better to switch in 1 click. You tried well.