function iterateWorld(y, x){
  let surroundingTiles
  let count
  for (y_i = 0; y_i < y; y_i++) {
    for (x_i = 0; x_i < x; x_i++) {
      surroundingTiles = getSurroundingTiles(y_i, x_i)
      count = countSurroundingOccurences(surroundingTiles)
      console.log(count)
      console.log(surroundingTiles)
    }  
  }
  return [surroundingTiles, count]
}
//eg everytime there is atleast 3 grass, add a bush..
eg everytime there is atleast 3 grass, add a bush
eg everytime there is atleast 3 grass add a bush
function iterateWorld(y, x){
  let surroundingTiles
  let count
  for (y_i = 0; y_i < y; y_i++) {
    for (x_i = 0; x_i < x; x_i++) {
      surroundingTiles = getSurroundingTiles(y_i, x_i)
      count = countSurroundingOccurences(surroundingTiles)
      console.log(count)
      console.log(surroundingTiles)
    }  
  }
  return [surroundingTiles, count]
}
function iterateWorld ( y , x ) { let surroundingTiles let count for ( y_i = 0 ; y_i < y ; y_i ++ ) { for ( x_i = 0 ; x_i < x ; x_i ++ ) { surroundingTiles = getSurroundingTiles ( y_i , x_i ) count = countSurroundingOccurences ( surroundingTiles ) console . log ( count ) console . log ( surroundingTiles ) } } return [ surroundingTiles , count ] }
eg everytime there is atleast 3 grass, add a bush..
eg everytime there is atleast 3 grass add a bush ..