minor cleaning of code in PlayerModel.cs through use of the new AddToState() function, to simplify adding/updating a value in the state.

- Introduced a new function AddToState(String key, Object value) to
simplify state comitting.
- Fixed bug where state did not commit "isStateValid" to the application
settings, causing future loads to always throw out saved data.