protected override void OnAppearing()
        {
            base.OnAppearing();
            LoadingIndicatorText.Text = "Loading Game Data";
            quitButton.IsVisible      = false;
            overlay.IsVisible         = true;
            Easing animationType = Easing.Linear;
            Random randomNumber  = new Random();

            Device.StartTimer(TimeSpan.FromSeconds(3), () =>
            {
                if (GameViewModel.IsPlayerTurn == false)
                {
                    switch (randomNumber.Next(3))
                    {
                    case 0:
                        animationType = Easing.SpringOut;
                        break;

                    case 1:
                        animationType = Easing.Linear;
                        break;

                    case 2:
                        animationType = Easing.CubicOut;
                        break;

                    case 3:
                        animationType = Easing.SinInOut;
                        break;

                    default:
                        animationType = Easing.BounceOut;
                        break;
                    }
                    {
                        ScoreGrid.AnchorX   = 0;
                        ScoreGrid.RotationY = 0;
                        ScoreGrid.RotateYTo(360, 1000, animationType);
                        ScoreGrid.AnchorX = 0.5;
                    }
                    return(true);
                }
                else
                {
                }
                return(true);
            });
            Task.Run(() =>
            {
                ReturnMyData();
            });
        }
        protected override void OnAppearing()
        {
            base.OnAppearing();
            Easing animationType = Easing.Linear;
            Random randomNumber  = new Random();

            Device.StartTimer(TimeSpan.FromSeconds(3), () =>
            {
                if (GameViewModel.IsPlayerTurn == false)
                {
                    switch (randomNumber.Next(3))
                    {
                    case 0:
                        animationType = Easing.SpringOut;
                        break;

                    case 1:
                        animationType = Easing.Linear;
                        break;

                    case 2:
                        animationType = Easing.CubicOut;
                        break;

                    case 3:
                        animationType = Easing.SinInOut;
                        break;

                    default:
                        animationType = Easing.BounceOut;
                        break;
                    }
                    //if (counter >= 3)
                    //{
                    //    MainGrid.AnchorX = 0;
                    //    MainGrid.RotationY = 0;
                    //    MainGrid.RotateYTo(360, 1000, animationType);
                    //    MainGrid.AnchorX = 0.5;
                    //    counter = 0;
                    //    return true;
                    //}
                    //if (counter >= 100)
                    //{
                    //    j.AnchorX = 0;
                    //    j.RotationY = 0;
                    //    j.RotateYTo(-360, 1000, animationType);
                    //    j.AnchorX = 0.5;
                    //}
                    //if (counter >= 1)
                    //{
                    //    k.AnchorX = 0;
                    //    k.RotationY = 0;
                    //    k.RotateYTo(360, 1000, animationType);
                    //    k.AnchorX = 0.5;
                    //}
                    //if (counter >= 2)
                    {
                        ScoreGrid.AnchorX   = 0;
                        ScoreGrid.RotationY = 0;
                        ScoreGrid.RotateYTo(360, 1000, animationType);
                        ScoreGrid.AnchorX = 0.5;
                    }
                    //counter++;
                    return(true);
                }
                else
                {
                    //if (buttonCondition == true)
                    //{
                    //    TurnButtonLayout.TranslationY = 0;
                    //    TurnButtonLayout.TranslateTo(0, -20, 2000, Easing.BounceOut);
                    //    buttonCondition = false;
                    //}
                    //else
                    //{
                    //    TurnButtonLayout.TranslationY = -20;
                    //    TurnButtonLayout.TranslateTo(0, 0, 2000, Easing.BounceOut);
                    //    buttonCondition = true;
                    //}
                }
                return(true);
            });
        }