private void ResetGame()
 {
     ResetButtons();
     Mistakes  = 0;
     Level     = 1;
     ImagePath = "../Images/Mistakes/Default.png";
     Seconds   = 59;
     StartTimer(Seconds);
     PickedWordsCollection.Clear();
     WordIndex             = 0;
     PickedWordsCollection = PickWords(CategoryProperty);
     Word = Codification(PickedWordsCollection[WordIndex]);
 }
        private void BackMethod(object param)
        {
            Seconds = (deadline - DateTime.Now).Seconds;
            StopTimer();
            MessageBoxResult messageBoxResult = MessageBox.Show("Do you want to save your game?", "Save Game", MessageBoxButton.YesNo);

            if (messageBoxResult == MessageBoxResult.Yes)
            {
                SaveGame();
            }
            else
            {
                PickedWordsCollection.Clear();
                SignIn signIn = new SignIn();
                App.Current.MainWindow.Close();
                App.Current.MainWindow = signIn;
                signIn.Show();
            }
        }