public void CloseScoreBoard()
 {
     scoreBoardWindow?.Kill();
 }
 public void CloseScoreBoard()
 {
     scoreBoardWindow?.Dispatcher.Invoke(() => { scoreBoardWindow?.Kill(); });
 }