Save the game's state

Fixes #22