private void EndGame()
 {
     if (MessageBox.Show("Wygrałeś", "Gratulacje", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         Window window = new Pyramid();
         window.ShowDialog();
         this.Close();
     }
     else
     {
         this.Close();
     }
 }
        private void Pyramid_Click(object sender, RoutedEventArgs e)
        {
            Window pyramid = new Pyramid();

            pyramid.ShowDialog();
        }