Adding ID to cards within a timeout loop