Update Sudoku.java

dynamically updates the domains and reverts to the hash map to access previous states