Update sudoku.js

minor change - adding a local var to one of the loops length check