let playcards = (deck) => { let distinctcards = avoidduplicates(deck); for(let i=0; i<distinctcards.length; prestartingcheck(distinctcards[i++])) if(checkstatute(distinctcards[i])) resetfromzero(); console.log("enjoy your game with distinct cards, ensure to pre-start checks to avoid any issues and always remember to play by the statute. if needed, don't hesitate to reset from zero for a fresh start!"); }