LED matrix 5 x 5 using arduino and breadboard UPDATED


I already turn on the 2 rows in 2nd breadboard, but the 3 rows above doesn't turn on. Can you help me? In the right side is my draft code

Code:

const int rows[] = {2, 3, 4, 5, 6};
const int cols[] = {7, 8, 9, 10, 11};
int matrix[5][5] = {
{1, 0, 1, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 1, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 1, 0, 1}
};

void setup() {
for (int i = 0; i < 5; i++) {
pinMode(rows[i], OUTPUT);
pinMode(cols[i], OUTPUT);
}
}

void loop() {
for (int row = 0; row < 5; row++) {
digitalWrite(rows[row], HIGH);

for (int col = 0; col < 5; col++) {
  
  digitalWrite(cols[col], matrix[row][col]);
  delay(1000); 


digitalWrite(rows[row], LOW);

}
}
}