code: def addPlayer(settings):
      
      _validate(settings)
      player = PlayerRecord(settings)
      player.save()
      getKnownPlayers()[player.name] = player
      return player
docs: define a new PlayerRecord setting and save to disk file