rem: return searchPiles(piles, testLastIsConsecutiveAndSameSuit(card)) || searchPiles(piles, testLastIsConsecutive(card)) 
add: var nonempty = filter(piles, testCanMoveToNonEmptyPile(card)); return searchPiles(nonempty, testLastIsSuit(card.suit())) || (nonempty.length && nonempty[0]) 
context:   getBestMoveForCard: function(card) {    var piles = getPilesRound(card.parentNode);    return searchPiles(piles, testLastIsConsecutiveAndSameSuit(card))        || searchPiles(piles, testLastIsConsecutive(card))        || searchPiles(piles, testPileIsEmpty);  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/9ca026135f28c844fb31e7b5da10e7c1c7371e6d/spider.js/buggy/spider.js