refactored checkers.js's second_degree_check function. made pretty comments. minor parameter name changes in console_driver.