while(fringe.length > 0) {
      let currentCell = fringe.pop()
      let y = currentCell.y
      let x = currentCell.x
      if (y == yMax && x == xMax) {