The code I have is pretty bloated and super basic, so I was hoping someone might be able to help me make it better, as it doesn't fully work.

http://pastebin.com/GK2NLZB2

What it is meant for is having a deck of fifteen cards. I need it to where you pull five cards at a time and it eliminates the five you've pulled from future pulls.

On the third pull, obviously, it should list the remaining cards. That's where it errors out, giving me a memory stack error from the process being too bloated by then.

What I am looking for is a way for it to have a list and when it hits a result it removes that possibility from the list entirely or something.

I don't know how to fully explain it.. and I figure my code is barbaric and inefficient. If anyone has any suggestions...