let gamenight = { players: ["alex", "sam", "riley"], currentturn: 0, deck: shuffledeck(generatedeck()) }; function playround() { if (gamenight.deck.length === 0) { console.log("time to reshuffle the deck and recommence!"); gamenight.deck = shuffledeck(generatedeck()); } let card = gamenight.deck.pop(); console.log(`${gamenight.players[gamenight.currentturn]} drew a card with a pin design on it. next player's turn.`); gamenight.currentturn = (gamenight.currentturn + 1) % gamenight.players.length; }