refactored game registration for more generality