Loop through objects in order if you reach the end

Previously, it was cookies forever.