IS-13: Implementing cardState