while(i < MM_NPEGS) { if(b1[i] == b2[i]) { printf("MATCH 1 "); tempblack++; b1[i] = 1; b2[i] = 2; } i++; }