private void GameOverShow()
        {
            try
            {
                var trs  = new TranslateTransform();
                var anim = new DoubleAnimation(0, 1000, TimeSpan.FromSeconds(1));
                trs.BeginAnimation(TranslateTransform.XProperty, anim);
                trs.BeginAnimation(TranslateTransform.YProperty, anim);
                paintCanvas.RenderTransform = trs;

                StartWindow start = new StartWindow();
                if (!start.IsVisible)
                {
                    start.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            input = txtName.Text;

            if (input == "Insert Player Name" || input == "")
            {
                MessageBox.Show("Give player name!");
            }

            else
            {
                StartWindow startwindow = new StartWindow();
                startwindow.Show();
                foreach (Window item in App.Current.Windows)
                {
                    if (item != startwindow)
                    {
                        item.Close();
                    }
                }
            }
        }