Sudoku solver in Java