Fixed logical errors in grader.js