diff --git a/src/main/java/game/loadNextQuestion.java b/src/main/java/game/loadNextQuestion.java index 9e1b169..9bc63d8 100644 --- a/src/main/java/game/loadNextQuestion.java +++ b/src/main/java/game/loadNextQuestion.java @@ -14,7 +14,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn1) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -23,7 +23,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn2) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -32,7 +32,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn3) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -41,7 +41,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn4) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } }