rem: for(var i = 0; i < 54; i++) { var left = this.stacks[i].firstChild; var right = this.stacks[(i+1) % 54].firstChild; 
add: for(var i = 0; i != 54; i++) { var left = this.piles[i].firstChild; var right = this.piles[(i+1) % 54].firstChild; 
context:   hasBeenWon: function() {    for(var i = 0; i < 54; i++) {      var left = this.stacks[i].firstChild;      var right = this.stacks[(i+1) % 54].firstChild;      // the pair must be consecutive and same suit except for queens and aces,      // which can sit next to empty spaces, or next to one another ignoring suit      if(right) {        if(right.isAce) {          if(left && !left.isQueen) return false        } else {          if(!(left && right.isSameSuit(left) && right.isConsecutiveTo(left))) return false;        }      } else {        if(left && !left.isQueen) return false;      }    }    return true;  }
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/15f3df693ddf02fb9ee6a2662189220868368b23/maze.js/clean/maze.js