Hahah yeah there's ways to expand on this - functions would be a neat way. I had a foreach loop going too, but that didn't get in due to edge cases. Buying these from the market added some roguelike progression elements to it. And re: elements staying in the loop you're right, a friend suggested that same thing after playing - makes more sense now in hindsight.