Added cardlib.cpp and changed deck input structure