matrix code

Write some code that runs inside void loop.
Check for 1 second of elapsed time.
When that occurs, adjust the array values to show the next LED pattern you want.

add this to the declarations section:
unsigned long currentMillis;
unsigned long nextMillis;

add this to the void loop
// sample the time
currentMillis = millis();
if (currenttMillis >=nextMillis){
nextMillis = currentMillis + 1000; // set up next time change
// perform array updates - left as as exercise for you ammygo!
}

int displayArray [] = {
  0b1111111111,0b0000000000};

...


  for (x = 0; x<10; x=x+1){
    digitalWrite (latchPin, LOW);
    SPI.transfer (highByte (displayArray[x]) );
    SPI.transfer (lowByte (displayArray[x]) );

displayArray has 2 elements, not 10.

SPI does its own clock, you don't need to do it yourself.