Finally made it past this challenge but it took me forever to figure this out XD The Get a hint solution gave a solution that worked but in the small piece of code there was a lot going on. To help other beginners I made a breakdown of the code and used color coding to explain each bit. Could someone take a look at this and see if the explanation is accurate?
Note: Forum posts do not support color coding. The breakdown can be viewed in google docs: