25 light flashing sequence

Their is a lot wrong with that code, you don’t seem to have the syntax correct in most of it. For example

pinMode(ledPins,OUTPUT); //we use this to set each LED pin to output
  }                                   //the code this replaces is below

Is wrong, it should be ledPins[i] to address the LEDs.

Also the comments on your array declaration are rubbish, so if you think that is how it works you are wrong.

More advice after you post your code correctly.