Refactored game data handler.