added answers accumulation in prepareQuiz function