Cumulative Project 4: After finally getting Main.java to run, I can't seem to play the game properly. The game seems to keep resetting after every run

This is Cumulative Project 4 Building Basic Android Appsfter screwing around with this for quite a while I finally got the MainActivity.java portion to run without issues. The issue I’m having now is that when I run my code in main with an answer that I want to input it says totalCorrect is 0 and Questions remaining: 5. I don’t know why it isn’t removing the current questions and marking off correct answers instead if resetting. Here’s my code:

Question.java:
public class Question {

int imageId;
String questionText;
String answer0;
String answer1;
String answer2;
String answer3;
int correctAnswer;
int playerAnswer;

public Question(int imageIdentifier,

  String questionString,
  String answerZero,
  String answerOne,
  String answerTwo,
  String answerThree,
  int correctAnswerIndex) {
    imageId = imageIdentifier;
    questionText = questionString;
    answer0 = answerZero;
    answer1 = answerOne;
    answer2 = answerTwo;
    answer3 = answerThree;
    correctAnswer = correctAnswerIndex;
    playerAnswer = -1;

}

boolean isCorrect() {

  return correctAnswer == playerAnswer;

}

}

After changing playerAnswer to 0, 1, 2, or 3 it still seems to reset.

MainActivity.java:

import java.util.ArrayList;

public class MainActivity {

// TODO #1: add integer member variables here
int currentQuestionIndex;
int totalCorrect;
int totalQuestions;

// TODO #2: add ArrayList member variable here

ArrayList<Question> questions = new ArrayList<Question>();

// TODO #3 add startNewGame() here    

public void startNewGame() {
  Question question1 = new Question(921238, "What is the fourth planet from the sun?", "Venus", "Mars", "Earth", "Jupiter", 1);
  Question question2 = new Question(107343, "What is a group of rabbits called?", "Fluffle", "Puffle", "Hop", "Jack", 0);
  Question question3 = new Question(748294, "Pretoria is the capital of which country?", "Jamaica", "Columbia", "Georgia", "South Africa", 3);
  Question question4 = new Question(613254, "When did the Chernobyl nuclear plant disaster take place?", "July 5, 1982", "October 14, 1992", "April 26, 1986", "August 7, 1984", 2);
  Question question5 = new Question(126487, "Which country launched the first satellite?", "The United States", "The Soviet Union", "Canada", "Italy", 1);
  questions.add(question1);
  questions.add(question2);
  questions.add(question3);
  questions.add(question4);
  questions.add(question5);
  totalCorrect = 0;
  totalQuestions = questions.size();
  Question firstQuestion = chooseNewQuestion();
  // displayQuestion(firstQuestion);
}

// TODO #4 add chooseNewQuestion() here

public Question chooseNewQuestion() {
  int n = questions.size();
  int randomNumber = generateRandomNumber(n-1); 
  currentQuestionIndex = randomNumber;
  return questions.get(currentQuestionIndex);
}

// TODO #5 add getCurrentQuestion() here

public Question getCurrentQuestion() {
  return questions.get(currentQuestionIndex);
}

// TODO #6 add onAnswerSubmission() here

public void onAnswerSubmission() {
  Question currentQuestion = getCurrentQuestion();
  if (currentQuestion.isCorrect()) {
    totalCorrect += 1;
    questions.remove(currentQuestion);
  }

  // displayQuestionsRemaining(questions.size());

if (questions.size() == 0) {
  System.out.println("Game over!");
  startNewGame();
} else {
  chooseNewQuestion();
}

}

int generateRandomNumber(int max) {
  double randomNumber = Math.random();
  double result = max * randomNumber;
  return (int) result;
}

// TO DO: Uncomment after implementing displayQuestion();
// displayQuestion(getCurrentQuestion());

String getGameOverMessage(int totalCorrect, int totalQuestions) {
    if (totalCorrect == totalQuestions) {
        return "You got all " + totalQuestions + " right! You won!";

    } else {
        return "You got " + totalCorrect + " right out of " + totalQuestions + ". Better luck next time!";

    }

}

}

Main.java:
public class Main {

public static void main(String[] args) {
    MainActivity mainActivity = new MainActivity();
    mainActivity.startNewGame();
    System.out.println("Questions remaining: " + mainActivity.totalQuestions);
    Question currentQuestion = mainActivity.getCurrentQuestion();
    printQuestion(currentQuestion);

    // Play the game!

    currentQuestion.playerAnswer = 1;
    System.out.println(currentQuestion.playerAnswer);
    mainActivity.onAnswerSubmission();
    System.out.println(mainActivity.totalCorrect);
}

static void printQuestion(Question question) {
    System.out.println("Question: " + question.questionText);
    System.out.println("Option 1: " + question.answer0);
    System.out.println("Option 2: " + question.answer1);
    System.out.println("Option 3: " + question.answer2);
    System.out.println("Option 4: " + question.answer3);
}

}

Changing the value for currentQuestion.playerAnswer = (); also doesn’t have any effect, it still resets.

Any help would be greatly appreciated, I’ve spent a lot of time going over this to try and figure out all the little details.