I'd just let each element handle the click individually instead of looping through the entire set.     And who needs loops when you can when you can emit events. I do that a lot in games.   See the Pen xWvbRP by osublake (@osublake) on CodePen  
    • Thanks
    • Like
    5