Solves Sudoku puzzle selected by the user (Java)