make numNadPins an int and consolidate bad pin setting in the main controller