Where is the event listener for the click added? I can't see anywhere in the code that would detect the click and then shuffle the deck. Maybe you just forgot to add this?