rem: var last = stack.lastChild; 
add: var last = pile.lastChild; 
context:   canMoveToFoundation: function(card, stack) {    // only the top card on a stack can be moved to foundations    if(card.nextSibling) return false;    // either the stack is empty and the card is whatever base number we are building foundations from,    // or it is consecutive (wrapping round at 13) and of the same suit    var last = stack.lastChild;    return (last ? (card.isSameSuit(last) && card.isConsecutiveMod13To(last))                 : (card.number==this.foundationStartNumber));  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/15f3df693ddf02fb9ee6a2662189220868368b23/canfield.js/buggy/canfield.js