Allright gloworm. What is/are the problem(s) wih your code? Try to be specific:
example: I get an error on line 112 that says : "blah blah error".
or I can't get to do x or y.
I will try to compile and run your code after I get some feedback from you.
First thing you should do is re-ident the printDeck function. That does not require any knowledge of anything. If an instruction si nested, either tab it or space it inside it's particular nesting instruction. However, use the same standard throghout your code.