private void ProcessGesture()
 {
     if (!mw.IsVisible & !slide.IsVisible)
     {
         if (rightHandOnImage(this.image1))
         {
             if (!loading)
             {
                 startSelectionTime = DateTime.Now;
                 startLoadingAnimation();
             }
             if (selectionFinished)
             {
                 //selectionTimer.Stop();
                 mw.Close();
                 mw = new Puzzle();
                 mw.Show();
                 selectionFinished = false;
             }
         }
         else
         {
             if (rightHandOnImage(this.image2))
             {
                 if (!loading)
                 {
                     startSelectionTime = DateTime.Now;
                     startLoadingAnimation();
                 }
                 if (selectionFinished)
                 {
                     //selectionTimer.Stop();
                     slide.Close();
                     slide = new MainWindow();
                     slide.Show();
                     selectionFinished = false;
                 }
             }
             else
             {
                 stopLoadingAnimation();
             }
         }
     }
 }