private void checkIfButtonClickedIsCorrectAnswer(int index) { boolean response = false; if (respRadioButton[index].getText().equals(test.getResponse())) { response = true; } else { response = false; } super.showAnimationAnswer(response); // only create new Question if user has right input if (this.gameMode) { if (response) { gameModeControl(); newQuestion(); } else if (totalFails < 3) { totalFails++; partialPoints = partialPoints - REST_FOR_FAIL; } else { partialPoints = 0; gameModeControl(); newQuestion(); } } }