/// <summary>
 /// event when clicking the solve maze button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SolveMaze_Click(object sender, RoutedEventArgs e)
 {
     MazeName.Solve       = true;
     this.Stack.IsEnabled = false;
     //set the client image to start point (the point of the solve path)
     MazeName.RestartGame(sender, e);
     vm.SolveMaze();
 }
        /// <summary>
        /// event when clicking the restart game button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RestartGame_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Are you sure you want to restart?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                MazeName.RestartGame(sender, e);
            }
        }