Java implementation or a card game