Need help with codes (continuity cable tester with lcd 16x2 i2C)

It works. Is there a way to change from 4 to 12 wires? I tried adding 12 but got error, the result is not the same.

int endA[sizeTest] = {4, 5, 6, 7,8,9,10,11,12,13,14}; //pins end A
int endB[sizeTest] = {22,23,24,25,26,27,28,29,30,31,32,33}; //pins endB

It doesn't work like 4 wires. The results showing xxxxxxxxx11
Instead of 0000000000011
The X should be only when wire is shorted.