web/game-rules refactoring