let cards = getallcards().filter(card => !card.turned).foreach(card => { if (card.description.includes("turn one's back on the true nature") && new date(card.pre-expiration) > date.now()) console.log("reveal the mysterious secret: " + card.statement); }); for(let i = 0; i < cards.length; i++) { cards[i].refresh(); if(cards[i].maliciousintent) break; }