void GameTick(object sender, EventArgs e)
        {
            gameover = currMatrix.GetGameState();

            if (gameover == true)
            {
                Stop();
                MainGrid.Children.Clear();
                MainGrid.Background  = Brushes.Transparent;
                Background           = ImgRsrc.GetGameOverImg();
                CurrScore.Foreground = Brushes.Transparent;
                Level.Foreground     = Brushes.Transparent;
                music.GameOver();
            }

            CurrScore.Content = currMatrix.GetScore().ToString("");
            Level.Content     = currMatrix.GetLevel().ToString("");

            if (currMatrix.GetLevel() <= 0)
            {
                dropDuration = 800;
            }
            else
            {
                dropDuration = 800 / currMatrix.GetLevel();
            }

            time.Interval = new TimeSpan(0, 0, 0, 0, dropDuration);
            currMatrix.MinoMoveDown();
        }
        private void StartGame()
        {
            MainGrid.Children.Clear();
            currMatrix          = new NotMatrix(MainGrid);
            Background          = ImgRsrc.GetBgImg();
            MainGrid.Background = ImgRsrc.GetMatrixBg();
            SolidColorBrush fontcol = new SolidColorBrush(Color.FromRgb(244, 215, 170));

            CurrScore.Foreground = fontcol;
            Level.Foreground     = fontcol;
            music.SickBGMusic();

            time.Stop();
            time.Start();
        }
 private void StartMenu()
 {
     music.SickIntro();
     Background = ImgRsrc.GetMenuImg();
 }