Fixed the quiz logic