/// <summary>
        /// Funkcja tworzy odpowiednią liczbę pól (label) w stosunku do ilości liter w wylosowanym słowie
        /// </summary>
        /// <param name="lenght"> długość wyolosowanego słowa(elementu tablicy)</param>
        /// <param name="grid"></param>
        private void CreateLabel(int lenght, Grid grid)
        {
            for (int i = 0; i < lenght; i++)
            {
                Label label = new Label();
                label.FontSize   = 20;
                label.FontFamily = new FontFamily("Cooper Black");
                label.Foreground = Brushes.DarkSlateGray;
                label.FontWeight = FontWeight;
                label.HorizontalContentAlignment = HorizontalAlignment.Center;
                label.VerticalContentAlignment   = VerticalAlignment.Center;
                label.BorderThickness            = new Thickness(2, 2, 2, 2);
                label.BorderBrush         = new SolidColorBrush(Color.FromArgb(0xFF, 96, 125, 139));
                label.Height              = label.Width = 38;
                label.HorizontalAlignment = HorizontalAlignment.Left;
                label.VerticalAlignment   = VerticalAlignment.Top;
                label.Name   = "Character" + i.ToString();
                label.Margin = new Thickness(i * label.Width, 0d, 0d, 0d);

                LabelsForWord.Add(label);
                grid.Children.Add(label);
            }
        }
 private void RevealLetters(int[] tempArray)
 {
     if (tempArray.Contains(1))
     {
         for (int i = 0; i < tempArray.Length; i++)
         {
             if (tempArray[i] == 1)
             {
                 LabelsForWord[i].Content = newGame.Word.ToUpper()[i];
             }
         }
         AddPoint();
         ChangeColorOfLetter(LabelsForAlpha, oneLetter, Brushes.YellowGreen);
         if (LabelsForWord.Count(l => l.Content == null) == 0)
         {
             MessageBox.Show("You win!");
             NewWindow();
         }
     }
     else
     {
         WrongGuess();
     }
 }