Remove $types in submit, split up some take_quiz code into functions, set rid in session