Adds click events to my apparently deeply flawed loop.
These events can fire up to three times. This loop is not as conditional as I thought it was.