fillMapNodes() {
      Object.keys(this.map).forEach(key => {
          this.nodes[key] = {
              routes: this.map[key],
              boar: 3,
              hunter: 0,
              start: this.nodeList.filter(s => s == key).length
          }
      });
  }
//fill nodes object as hunting object with accessable varibles  
fill nodes object as hunting object with accessable varibles
fill nodes object as hunting object with accessable varibles
fillMapNodes() {
      Object.keys(this.map).forEach(key => {
          this.nodes[key] = {
              routes: this.map[key],
              boar: 3,
              hunter: 0,
              start: this.nodeList.filter(s => s == key).length
          }
      });
  }
fillMapNodes ( ) { Object . keys ( this . map ) . forEach ( key => { this . nodes [ key ] = { routes : this . map [ key ] , boar : 3 , hunter : 0 , start : this . nodeList . filter ( s => s == key ) . length } } ) ; }
fill nodes object as hunting object with accessable varibles
fill nodes object as hunting object with accessable varibles