public void createChessSelectBoard() { for (int j = 0; j < 2; j++) { for (int i = 0; i < options.Count; i++) { int coordinateX = (j == 0) ? 900 : 1000; string color_ = (j == 0) ? "White" : "Black"; figures[j, i] = new ChessBoardSelectField(j, i, Color.Aqua, j + 1, options[i]); figures[j, i].Size = new Size(fieldHeight, fieldHeight); figures[j, i].Click += selectFigure; figures[j, i].Location = new Point(coordinateX, fieldHeight * i); AddToInterface(figures[j, i]); } } Button testBtn = new Button(); testBtn.Text = "ZACZNIJ GRE"; testBtn.Size = new Size(100, 80); testBtn.Location = new Point(900, 600); //testBtn.Click += startGame; //AddToInterface(testBtn); }