Creates a displayQuizResults function