Java based sudoku solver