Added save to local storage functionality

Added ability to auto-save every 10'' to local-storage and then load
last save.