public final void setQuestion(Question question) {
        String answerString = "";
        ArrayList<String> order = new ArrayList<>();
        order.add(question.getCorrectAnswer());
        order.add(question.getOtherAnswers()[0]);
        order.add(question.getOtherAnswers()[1]);
        order.add(question.getOtherAnswers()[2]);
        Collections.shuffle(order);
        currentCorrectAnswer = order.indexOf(question.getCorrectAnswer());
        currentQuestion = question;
        for (int i = 0; i < 4; i++) {
            String character = "";
            switch (i) {
                case 0:
                    character = "A) ";
                    break;
                case 1:
                    character = "B) ";
                    break;
                case 2:
                    character = "C) ";
                    break;
                case 3:
                    character = "D) ";
                    break;
            }
            answerString += "<h1>" + character + order.get(i) + "</h1>";
        }
        panel.setBackground(Color.BLACK);
        mainPanel.setText("<html><center>"
                + "<h2>Please choose the best response to the following question.  </h2>"
                + "<p>" + question.getQuestion() + "</p>"
                + "</center><br>" + answerString + "</html>");
        if(prefs.usingTimer()){
            timer.startAndControlClock(timerLabel, prefs.getTimerDuration() + 1);
        }
    }