wrote card instance for creating deck