'arg' attribute added to gamestate.

unittests.py updated accordingly.
Also format style fix to StateError and ScoreError.