We want to iterate through the ancestors of a node until we find a parent with a specific class.
SpriteKit lets you iterate through children with the children
property, but the parent
property only holds the immediate parent -- not an array of parents. How do we iterate through all the ancestors of a node?