// Builds the chess pieces place holder images controls public void BuildBoard() { Squares = new ArrayList(); // Initialize place holder pictures // Now dynamically draw all the chess pieces place holder images for (int row = 1; row <= 8; row++) // repeat for every row in the chess board { for (int col = 1; col <= 8; col++) // repeat for every column in the chess board row { Square ChessSquare = new Square(row, col, this); ChessSquare.SetBackgroundSquare(ChessImages); // Set the chess square background Squares.Add(ChessSquare); ParentForm.Controls.Add(ChessSquare); } } }