public MainWindow()
        {
            InitializeComponent();

            center = new Point(Canvas.Width / 2, Canvas.Height / 2);

            playerPlatform = new PlayerPlatform(center);
            ball = new Ball(playerPlatform.radius, center);

            SetBackground(Color.LightSeaGreen);
            SetBackgroundMainMenu(Color.LightSeaGreen);

            enemies1 = new Enemies(7, 50, new Pen(new SolidBrush(Color.FromArgb(200, 255, 186, 2)), 25), center, true, (float)0.2, 7);
            enemies2 = new Enemies(4, 90, new Pen(new SolidBrush(Color.FromArgb(200, 217, 68, 48)), 20), center, false, (float)0.3, 5);
            enemies3 = new Enemies(8, 120, new Pen(new SolidBrush(Color.FromArgb(200, 23, 109, 237)), 22), center, true, (float)0.4, 4);
            enemies4 = new Enemies(10, 145, new Pen(new SolidBrush(Color.FromArgb(200, 0, 155, 87)), 16), center, false, (float)0.5, 1);

            ball.speed = 3;
            playerPlatform.sweepAngle = 40;

            colorScheme = new ColorScheme(ColourScheme, new[] { Color.LightSeaGreen, Color.FromArgb(114, 34, 114),
                Color.FromArgb(67, 67, 170), Color.FromArgb(201, 68, 68), Color.FromArgb(34, 102, 34),
                Color.Firebrick, Color.FromArgb(39, 28, 39), Color.FromArgb(99, 55, 99), Color.Beige, Color.FromArgb(21, 21, 66),
            Color.FromArgb(44, 120, 120), Color.FromArgb(187, 187, 92), Color.FromArgb(166, 166, 212), Color.FromArgb(32, 189, 189),
            Color.FromArgb(200, 200, 40), Color.FromArgb(77, 77, 46), Color.FromArgb(190, 55, 55), Color.FromArgb(58, 58, 185),
            Color.FromArgb(112, 62, 62), Color.FromArgb(54, 54, 60)});

            colorScheme.Draw(ColourScheme.CreateGraphics());
        }
        private void buttonVeryHard_Click(object sender, EventArgs e)
        {
            score = 0;
            stopWatch.Reset();
            ball.started = false;
            ball.UpdateOnPlatform(mouseAngle, playerPlatform);

            SetBackground(Color.FromArgb(54, 54, 60));
            SetBackgroundMainMenu(Color.FromArgb(54, 54, 60));

            enemies1 = new Enemies(10, 50, new Pen(new SolidBrush(Color.FromArgb(200, 255, 186, 2)), 25), center, true, (float)0.6, 7);
            enemies2 = new Enemies(15, 90, new Pen(new SolidBrush(Color.FromArgb(200, 217, 68, 48)), 20), center, false, (float)0.8, 5);
            enemies3 = new Enemies(12, 120, new Pen(new SolidBrush(Color.FromArgb(200, 23, 109, 237)), 22), center, true, (float)1, 4);
            enemies4 = new Enemies(36, 145, new Pen(new SolidBrush(Color.FromArgb(200, 0, 155, 87)), 16), center, false, (float)1.2, 1);

            ball.speed = 6;
            playerPlatform.sweepAngle = 14;
            playerPlatform.penPlatform.Width = 14;

            DifficultyCyberSport = false;
        }
        private void buttonCyberSport_Click(object sender, EventArgs e)
        {
            score = 0;
            stopWatch.Reset();
            ball.started = false;
            ball.UpdateOnPlatform(mouseAngle, playerPlatform);

            SetBackground(Color.Black);
            SetBackgroundMainMenu(Color.Black);
            enemies1 = new Enemies(4, 30, new Pen(new SolidBrush(Color.FromArgb(200, 255, 186, 2)), 14), center, true, (float)0.9, 7);
            enemies2 = new Enemies(6, 50, new Pen(new SolidBrush(Color.FromArgb(200, 217, 68, 48)), 12), center, false, (float)1.1, 5);
            enemies3 = new Enemies(8, 70, new Pen(new SolidBrush(Color.FromArgb(200, 23, 109, 237)), 14), center, true, (float)1.3, 4);
            enemies4 = new Enemies(10, 90, new Pen(new SolidBrush(Color.FromArgb(200, 0, 155, 87)), 10), center, false, (float)1.5, 1);

            enemies5 = new Enemies(8, 110, new Pen(new SolidBrush(Color.FromArgb(200, 33, 112, 230)), 14), center, true, (float)0.9, 7);
            enemies6 = new Enemies(6, 130, new Pen(new SolidBrush(Color.FromArgb(200, 15, 92, 222)), 12), center, false, (float)1.1, 5);
            enemies7 = new Enemies(8, 150, new Pen(new SolidBrush(Color.FromArgb(200, 46, 122, 220)), 14), center, true, (float)1.3, 4);
            enemies8 = new Enemies(4, 170, new Pen(new SolidBrush(Color.FromArgb(200, 10, 85, 210)), 10), center, false, (float)1.5, 1);


            ball.speed = 8;
            playerPlatform.sweepAngle = 11;
            playerPlatform.penPlatform.Width = 18;

            DifficultyCyberSport = true;
        }
        private void buttonEasy_Click(object sender, EventArgs e)
        {
            score = 0;
            stopWatch.Reset();
            ball.started = false;
            ball.UpdateOnPlatform(mouseAngle, playerPlatform);

            SetBackground(Color.LightSeaGreen);
            SetBackgroundMainMenu(Color.LightSeaGreen);

            enemies1 = new Enemies(7, 50, new Pen(new SolidBrush(Color.FromArgb(200, 255, 186, 2)), 25), center, true, (float)0.2, 7);
            enemies2 = new Enemies(4, 90, new Pen(new SolidBrush(Color.FromArgb(200, 217, 68, 48)), 20), center, false, (float)0.3, 5);
            enemies3 = new Enemies(8, 120, new Pen(new SolidBrush(Color.FromArgb(200, 23, 109, 237)), 22), center, true, (float)0.4, 4);
            enemies4 = new Enemies(10, 145, new Pen(new SolidBrush(Color.FromArgb(200, 0, 155, 87)), 16), center, false, (float)0.5, 1);

            ball.speed = 3;
            playerPlatform.sweepAngle = 40;
            playerPlatform.penPlatform.Width = 14;

            DifficultyCyberSport = false;
        }