updated grader with better strategy