containsPlayer(socketId) {
    const players = this.store.getState().players
    for (let i = 0; i < players.length; i++) {
      if (players[i].socketId === socketId) {
        return true
      }
    }
    return false
  }
/**
   * checks if a player is in a lobby
   * plan to use for permissions stuff if needed
   * @param {string} socketId   socketId of the player
   */
checks if a player is in a lobby
plan to use for permissions stuff if needed
@param {string} socketId   socketId of the player
checks if a player is in a lobby plan to use for permissions stuff if needed @param { string } socketId socketId of the player
containsPlayer(socketId) {
    const players = this.store.getState().players
    for (let i = 0; i < players.length; i++) {
      if (players[i].socketId === socketId) {
        return true
      }
    }
    return false
  }
containsPlayer ( socketId ) { const players = this . store . getState ( ) . players for ( let i = 0 ; i < players . length ; i ++ ) { if ( players [ i ] . socketId === socketId ) { return true } } return false }
checks if a player is in a lobby
 plan to use for permissions stuff if needed
 @param {string} socketId   socketId of the player
checks if a player is in a lobby plan to use for permissions stuff if needed @param { string } socketId socketId of the player