Implemented answer checking in quiz.