add: if(!card.isLastOnPile()) return false; 
context: DoubleSol.canMoveToFoundation = function(card, stack) {  // foundations are built A,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,J,J,Q,Q,K,K  var last = stack.lastChild;  if(!last) return card.isAce();  if(!card.isSameSuit(last)) return false;  if(card.number()==last.number()) return true;  return (    (!last.previousSibling || last.previousSibling.number()==last.number())    && card.isConsecutiveTo(last));}
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/b6eee0d5f9714edaa2717897b79497d935d74732/doublesol.js/buggy/doublesol.js