This is a remix of the upgrade button in this project. I noticed that it was using a long series of nested if-elses, so I consolidated them into a single if using lists.