newLobby(lobbyName = null, hidden = false) {
    if (lobbyName === null) {
      do {
        lobbyName = this.makeId(20)
      } while (this.hidden.has(lobbyName) || this.lobbies.has(lobbyName))
    }
    const lobby = new Lobby(lobbyName, makeStore())
    if (hidden) {
      lobby.hidden = true
      this.hidden.set(lobbyName, lobby)
    } else {
      this.lobbies.set(lobbyName, lobby)
    }
    return lobby
  }
/**
   * makes a new lobby with a unique id
   * @param {string} lobbyName    optional name of lobby
   * @param {boolean} hidden      if the lobby is hidden and can only be joined by link
   */
makes a new lobby with a unique id
@param {string} lobbyName    optional name of lobby
@param {boolean} hidden      if the lobby is hidden and can only be joined by link
makes a new lobby with a unique id @param { string } lobbyName optional name of lobby @param { boolean } hidden if the lobby is hidden and can only be joined by link
newLobby(lobbyName = null, hidden = false) {
    if (lobbyName === null) {
      do {
        lobbyName = this.makeId(20)
      } while (this.hidden.has(lobbyName) || this.lobbies.has(lobbyName))
    }
    const lobby = new Lobby(lobbyName, makeStore())
    if (hidden) {
      lobby.hidden = true
      this.hidden.set(lobbyName, lobby)
    } else {
      this.lobbies.set(lobbyName, lobby)
    }
    return lobby
  }
newLobby ( lobbyName = null , hidden = false ) { if ( lobbyName === null ) { do { lobbyName = this . makeId ( 20 ) } while ( this . hidden . has ( lobbyName ) || this . lobbies . has ( lobbyName ) ) } const lobby = new Lobby ( lobbyName , makeStore ( ) ) if ( hidden ) { lobby . hidden = true this . hidden . set ( lobbyName , lobby ) } else { this . lobbies . set ( lobbyName , lobby ) } return lobby }
makes a new lobby with a unique id
 @param {string} lobbyName    optional name of lobby
 @param {boolean} hidden      if the lobby is hidden and can only be joined by link
makes a new lobby with a unique id @param { string } lobbyName optional name of lobby @param { boolean } hidden if the lobby is hidden and can only be joined by link