Think about the logic there. Check if the first item matches, if it does give the upgrade, otherwise return the items. By the time you get to checking the second item you've already given everything back.
I'm no expert, but it seems to me you would want to check the whole list for matches before giving anything back.
|