Update sudoku.js

Added states for save and restore functionality.