protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            //mGoogleApiClient = new GoogleApiClientBuilder(this).AddApi(Plus.Api).AddScope(new Scope(Scopes.Games)).Build();

            // create an instance of Google API client and specify the Play services
            // and scopes to use. In this example, we specify that the app wants
            // access to the Games, Plus, and Cloud Save services and scopes.
            GoogleApiClientBuilder builder = new GoogleApiClientBuilder(this, this, this);

            builder.AddApi(GamesClass.Api).AddScope(GamesClass.ScopeGames);
            mGoogleApiClient = builder.Build();

            mMatch = new MatchInfo(this);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.myButton);

            button.Click += delegate
            {
                mMatch.IncrementClickCount();
            };

            Button StartMatch = FindViewById <Button>(Resource.Id.StartMatchBtn);

            StartMatch.Click += delegate
            {
                if (!mGoogleApiClient.IsConnected)
                {
                    Toast.MakeText(this, "Sign In First", ToastLength.Long).Show();
                    return;
                }

                Toast.MakeText(this, "StartMatch.Click", ToastLength.Long).Show();

                Intent intent = GamesClass.TurnBasedMultiplayer.GetSelectOpponentsIntent(mGoogleApiClient, 1, 1, true);
                StartActivityForResult(intent, RC_SELECT_PLAYERS);
            };

            Button InboxButton = FindViewById <Button>(Resource.Id.InboxBtn);

            InboxButton.Click += delegate
            {
                if (!mGoogleApiClient.IsConnected)
                {
                    Toast.MakeText(this, "Sign In First", ToastLength.Long).Show();
                    return;
                }

                Toast.MakeText(this, "InboxButton.Click", ToastLength.Long).Show();

                Intent intent = GamesClass.TurnBasedMultiplayer.GetInboxIntent(mGoogleApiClient);
                StartActivityForResult(intent, RC_OPEN_INBOX);
            };

            Button TurnButton = FindViewById <Button>(Resource.Id.TakeTurnBtn);

            TurnButton.Click += delegate
            {
                mMatch.EndTurn();
            };

            Button SingInButton = FindViewById <Button>(Resource.Id.SignInBtn);

            SingInButton.Click += delegate
            {
                if (mGoogleApiClient.IsConnected || mGoogleApiClient.IsConnecting)
                {
                    Toast.MakeText(this, "Already Signed In.", ToastLength.Long).Show();
                    return;
                }

                mGoogleApiClient.Connect();
            };

            Button SingOutButton = FindViewById <Button>(Resource.Id.SignOutBtn);

            SingOutButton.Click += delegate
            {
                if (mGoogleApiClient == null)
                {
                    Toast.MakeText(this, "Google API is Null. Fatal Error.", ToastLength.Long).Show();
                    return;
                }

                if (!mGoogleApiClient.IsConnected && !mGoogleApiClient.IsConnecting)
                {
                    Toast.MakeText(this, "Already Signed Out.", ToastLength.Long).Show();
                    return;
                }

                mGoogleApiClient.Disconnect();
            };
        }