validate a sudoku board in yavascript