Quiz Submission refactor

I can't believe @tristantao made me do another refactor.