private void InitializeBoard()
        {
            bool  color = true;
            Panel p;

            for (int i = 0; i < 8; i++)
            {
                for (int j = 0; j < 8; j++)
                {
                    p                 = new Panel();
                    p.Bounds          = new Rectangle(j * 60, i * 60, 60, 60);
                    p.BackgroundImage = BitmapGenerator.GenerateDiasbleChessCellBoardImage(60, 60);
                    boardPanel.Controls.Add(p);
                    cellColor[i, j] = color;
                    board[i, j]     = p;
                    color           = !color;
                }
                color             = !color;
                p                 = new Panel();
                p.Bounds          = new Rectangle(0, i * 60, 100, 60);
                p.BorderStyle     = BorderStyle.FixedSingle;
                p.BackgroundImage = BitmapGenerator.GenerateChessCellBoardImage(true, 100, 60);
                statisticPanel.Controls.Add(p);
            }
        }
 private void ResetBoard()
 {
     for (int i = 0; i < 8; i++)
     {
         for (int j = 0; j < 8; j++)
         {
             board[i, j].BackgroundImage = BitmapGenerator.GenerateDiasbleChessCellBoardImage(60, 60);
         }
         mark[i] = false;
         statisticPanel.Controls[i].BackgroundImage = BitmapGenerator.GenerateChessCellBoardImage(true, 100, 60);
     }
 }