auto_judge now grades according to max_grade