moved the Commands enum out of the Main class
added try..catch stuff around the validate and compose loops so that if a single card fails, all the others will still be processed.