private void GameWork(ObservableCollection<Content> lvlCountries)
        {
            Random rnd = new Random();
            CurrentCountries = lvlCountries;
            int elem_id = rnd.Next(0, lvlCountries.Count);
            CurrentCountry = lvlCountries.ElementAt(elem_id);

            string namecountry = CurrentCountry.Country;
            NameCountryText.Text = namecountry;
            nameCapital = CurrentCountry.Capital.ToLower();


            var mixedCapital = CurrentCountry.ConvertCapitalName(CurrentCountry.Capital);

            //countryLeftText.Text = App.AllCountries.Count.ToString() + " / " + App.LeftCounter.ToString();
           // textBlock.Text = lvlCountries.Count.ToString();
            ImageBrush brush = new ImageBrush();
            string path = "ms-appx:///img/" + CurrentCountry.PathSourceImage + ".jpg";
            brush.ImageSource = new BitmapImage(new Uri(path, UriKind.Absolute));
            MainImage.Background = brush;


            if (App.SettingsGame.HintButton == true)
            {
                hintbutton.Opacity = 100;
                hintbutton.IsEnabled = true;

            }
            else
            {
                hintbutton.Opacity = 0;
                hintbutton.IsEnabled = false;
            }


            for (int i = 0; i < gridLetters.Children.Count; i++)
            {
                if (gridLetters.Children[i].GetType() == textBlock1.GetType())
                {
                    textBlocks.Add((TextBlock)gridLetters.Children[i]);
                }
            }

            for (int i = 0; i < gridCap.Children.Count; i++)
            {
                if (gridLetters.Children[i].GetType() == textBlock1.GetType())
                {
                    textBlocksCapital.Add((TextBlock)gridCap.Children[i]);
                }
            }


            start = (textBlocksCapital.Count - mixedCapital.Length) / 2;


            for (int i = 0; i < mixedCapital.Length; i++)
            {
                rand = rnd.Next(0, textBlocks.Count);
                while (textBlocks[rand].Text != "")
                {
                    rand = rnd.Next(0, textBlocks.Count);
                }

                textBlocks[rand].Text = mixedCapital[i].ToString();
                textBlocksCapital[start + i].Text = ".";
            }

            foreach (TextBlock txtBlock in textBlocks)
            {
                if (txtBlock.Text == "") textBlocksTrash.Add(txtBlock);
            }

            foreach (TextBlock trashBlock in textBlocksTrash)
            {
                rand = rnd.Next(0, textBlocksTrash.Count);
                trashBlock.Text = trashLetters[rand].ToString();
            }


        }