use standard syntax when writing or reading game state
minor formatting fix
update tests