4017 IC switch matrix controller and library. Up to 100 switches with 3 pins!

The point of reset is to return the scanning to the zero position, so all 4017 resets need to be connected to the same Arduino output pin, as you seem to be now doing.