If I remember correctly, The code will automatically re-shuffle the deck once the remaining cards are below a threshold. It's been a while though, I'll have to read through and see how I've written it. Does it happen often? Or are there any specific steps to replicate the issue