determining whether sudoku solved is correct or not