Rasla, there's a flaw in your shuffling algorithm. Firstly, you never update taken, so it is possible (and very likely) to have duplicate cards end up in the shuffled deck. Secondly, you're using an...