multiple choice grading logic