partial implementation of playQuiz()