if (row % 2 == 0) — This creates stripes, not a checkerboard. Fix: Always use (row + col) % 2 == 0 .
Define or use a function to print each row of the list so it looks like a grid. 9.1.7 Checkerboard V2 Codehs