Calculated next cards sequentially when regenerate button is clicked