addPlayerToWaiting(name, socketId) {
    if (!this.playerIsLobbied(socketId)) {
      this.waitingPlayers.push({name, socketId})
    }
  }
/**
   * adds the player to the waiting list (dont use for hidden games)
   * @param {string} name      player's name
   * @param {string} socketId  player's socket id
   */
adds the player to the waiting list (dont use for hidden games)
@param {string} name      player's name
@param {string} socketId  player's socket id
adds the player to the waiting list ( dont use for hidden games ) @param { string } name player ' s name @param { string } socketId player ' s socket id
addPlayerToWaiting(name, socketId) {
    if (!this.playerIsLobbied(socketId)) {
      this.waitingPlayers.push({name, socketId})
    }
  }
addPlayerToWaiting ( name , socketId ) { if ( ! this . playerIsLobbied ( socketId ) ) { this . waitingPlayers . push ( { name , socketId } ) } }
adds the player to the waiting list (dont use for hidden games)
 @param {string} name      player's name
 @param {string} socketId  player's socket id
adds the player to the waiting list ( dont use for hidden games ) @param { string } name player ' s name @param { string } socketId player ' s socket id