so if i change the section of the loop to:
if (digitalRead(pinArray**) == LOW && !ShortedOnPcb(a,b)){ // Has the pin been pulled low by a short?**
__ Serial.println(" FAIL");__
** }**
** else {**
** Serial.println("PASS");**
** }**
Then add the ShortedOnPcb() method:
boolean ShortedOnPcb(byte outputPin, byte inputPin) {
** switch(outputPin) {**
** case 2:**
** return (inputPin==10);**
** break;**
** case 23:**
** return (inputPin==44);**
** break;**
** ...**
** }**
** return false;**