Moved file operations to GameEntity