private void MseUP(object sender, MouseButtonEventArgs e)
 {
     //if the player left click, the helicopter will move up
     if (e.LeftButton == Mouse.LeftButton)
     {
         double player = playerspeed -= 20;
         RectHeli.SetValue(Canvas.TopProperty, player);
     }
 }
 private void MseDown(object sender, MouseButtonEventArgs e)
 {
     //if the player right click, the helicopter will move down
     if (e.LeftButton == MouseButtonState.Released)
     {
         double player = playerspeed += 20;
         RectHeli.SetValue(Canvas.TopProperty, player);
     }
 }