using Preferences instead of files for game persistence. in progress