Crate system could be exploited?

Managed to figure out why, it was settiung the WinningFrame to be the last frame that had the same item as the winning item. I do this now, but this just means it ends way too quickly (as if grabs the first item to be created that happens to be the winning item)

if not WinningFrame then
			if WinningItem.Item == Item.Item then
				WinningFrame = NewFrame
			end
		end

How can I get it to grab an item somewhere in the middle?