public void UpdateGame()
        {
            if (restartRequested)
            {
                restartRequested = false;
                RestartLevel();
                return;
            }

            if (ChipTickBehavior.Instance.proposedMove == null && proposedmove != Shared.Gui.UserInput.None)
            {
                switch (proposedmove)
                {
                case Shared.Gui.UserInput.MoveUp:
                    MoveUp();
                    break;

                case Shared.Gui.UserInput.MoveDown:
                    MoveDown();
                    break;

                case Shared.Gui.UserInput.MoveLeft:
                    MoveLeft();
                    break;

                case Shared.Gui.UserInput.MoveRight:
                    MoveRight();
                    break;
                }
            }

            proposedmove = Shared.Gui.UserInput.None;
            GameInstance.Tick();
            PlayField = gamePlayField.GeneratePlayField();

            if (Orientation == ApplicationViewOrientation.Landscape)
            {
                HudLandscape = Hud.Instance.GetHudLandscape();
            }
            else
            {
                HudPortrait = Hud.Instance.GetHudPortrait();
            }
        }
 public void ClearMove()
 {
     proposedmove = Shared.Gui.UserInput.None;
 }
 public void RepeatMoveDown()
 {
     proposedmove = Shared.Gui.UserInput.MoveDown;
 }
 public void RepeatMoveRight()
 {
     proposedmove = Shared.Gui.UserInput.MoveRight;
 }
 public void RepeatMoveUp()
 {
     proposedmove = Shared.Gui.UserInput.MoveUp;
 }