Implemented local storage for cards