private void create_bricks() { brick_layout = new Brick[rows, bricks_per_row]; for (int r = 0; r < rows; r++) { if (r < 2) { for (int u = 0; u < bricks_per_row; u++) { brick_layout[r, u] = new Blue_Brick(brick_layout_X, brick_layout_Y); } } else if (r < 4) { for (int u = 0; u < bricks_per_row; u++) { brick_layout[r, u] = new Green_Brick(brick_layout_X, brick_layout_Y); } } else if (r < 6) { for (int u = 0; u < bricks_per_row; u++) { brick_layout[r, u] = new Red_Brick(brick_layout_X, brick_layout_Y); } } else if (r < 8) { for (int u = 0; u < bricks_per_row; u++) { brick_layout[r, u] = new Yellow_Brick(brick_layout_X, brick_layout_Y); } } } }