added basic deck manager and associated functions. Added card and identity comparison functions