Processing Memory Game

I’m a little stuck in my code.

I’m trying to shuffle my deck, but it’s taking ages, to draw them. I waited for like 15 min and there is still no results.

Does anyone has an idea how I can fix this? :frowning:

My code its downloadble :smiley:

I wasn’t able to find the code section

Please post relevant section that takes so long here