added IO functions for gamestate