help!!!

This is going to be a problem:

byte ledPin[] = {4, 5, 6, 7, 8, 9};
...
  for (int x=0; x<9; x++) {//
 pinMode(ledPin[x], OUTPUT); }

That array has a size of 6. Trying to access element 8 is bad news.