 
     _globalManager: (region) =>
         if not @global_managers[region]
-            @global_managers[region] = new GlobalLobbyManager()
+            @global_managers[region] = new GlobalLobbyManager(region)
         return @global_managers[region]
     
     _ovoManager: (region) =>

        for p in _.values(@players) when p.id isnt player_id
            p.chatReceived(player_id, text)
        a.emit('chatReceived', {id: player_id, text: text}) for a in _.values(@anons)

    removePlayer: (id) =>
        was_player = id of @players
        delete @players[id]
        delete @anons[id]
        if was_player
            p.playerLeft(id) for p in _.values(@players)
            a.emit('playerLeft', id) for a in _.values(@anons)

    numPlayers: =>
        return _.keys(@players).length

        return @pending_players_order.length

class GlobalLobbyManager
    constructor: (region) ->
        @players = {}
        @anons = {}
        @region = region

    addPlayer: (player) =>
        delete @anons[player.id]
