Made modifications to the respondCardRequest to avoid iterators