refactor game state templates.