Refactored grader.js and added checks to checks.json