Changed order of && statement to make sure all pins attempted