End of quiz working