cards objects in java