content: package com.androidgames.tictactoe.ui;
  
  import android.os.Bundle;
  
  import com.androidgames.tictactoe.app.Constantes;
  import com.androidgames.tictactoe.model.Jugada;
  import com.google.android.material.floatingactionbutton.FloatingActionButton;
  import com.google.android.material.snackbar.Snackbar;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.appcompat.widget.Toolbar;
  import android.view.View;
  import android.widget.ImageView;
  import android.widget.TextView;
  
  import com.androidgames.tictactoe.R;
  import com.google.firebase.auth.FirebaseAuth;
  import com.google.firebase.auth.FirebaseUser;
  import com.google.firebase.firestore.FirebaseFirestore;
  import com.google.firebase.firestore.ListenerRegistration;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class GameActivity extends AppCompatActivity {
      List<ImageView> casillas;
      TextView tvPlayer1, tvPlayer2;
      FirebaseAuth firebaseAuth;
      FirebaseFirestore db;
      String uid, jugadaId, playerOneName = "", playerTwoName = "";
      Jugada jugada;
      ListenerRegistration listenerJugada;
      FirebaseUser firebaseUser;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_game);
          Toolbar toolbar = findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
          FloatingActionButton fab = findViewById(R.id.fab);
          fab.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                          .setAction("Action", null).show();
              }
          });
  
          initViews();
          initGame();
      }
  
      private void initGame() {
          firebaseAuth = FirebaseAuth.getInstance();
          firebaseUser = firebaseAuth.getCurrentUser();
          db = FirebaseFirestore.getInstance();
          uid = firebaseUser.getUid();
  
          Bundle extras = getIntent().getExtras();
          jugadaId = extras.getString(Constantes.EXTRA_JUGADA_ID);
      }
  
      private void initViews() {
          tvPlayer1 = findViewById(R.id.textViewPlayer1);
          tvPlayer2 = findViewById(R.id.textViewPlayer2);
  
          casillas = new ArrayList<>();
          casillas.add((ImageView) findViewById(R.id.imageView0));
          casillas.add((ImageView) findViewById(R.id.imageView1));
          casillas.add((ImageView) findViewById(R.id.imageView2));
          casillas.add((ImageView) findViewById(R.id.imageView3));
          casillas.add((ImageView) findViewById(R.id.imageView4));
          casillas.add((ImageView) findViewById(R.id.imageView5));
          casillas.add((ImageView) findViewById(R.id.imageView6));
          casillas.add((ImageView) findViewById(R.id.imageView7));
          casillas.add((ImageView) findViewById(R.id.imageView8));
      }
  
      @Override
      protected void onStart() {
          super.onStart();
          jugadaListener();
      }
  
      private void jugadaListener() {
  
      }
  }
  