rem: var stack = this.stacks[i]; var length = stack.childNodes.length; if(length>=13) { var card = stack.childNodes[length-13];  if(card.isKing() && this.canMoveCard(card) && this.canMoveToFoundation(card,null)) { return this.moveTo(card,this.foundations[0]); } } 
add: var pile = this.stacks[i]; var n = pile.childNodes.length - 13; if(n>=0 && this.sendToFoundations(pile.childNodes[n])) return true; 
context:   autoplayMove: function() {    // remove completed suits    for(var i = 0; i != this.stacks.length; i++) {      var stack = this.stacks[i];      var length = stack.childNodes.length;      if(length>=13) {        var card = stack.childNodes[length-13];        // note that it's irrelevant which foundation we try to move to, moveTo will pick the right one        if(card.isKing() && this.canMoveCard(card) && this.canMoveToFoundation(card,null)) {          return this.moveTo(card,this.foundations[0]);        }      }    }    return false;  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/9ca026135f28c844fb31e7b5da10e7c1c7371e6d/spider.js/buggy/spider.js