Memory

Especially if you have a general function to register events like this, it's cleanest to have the event handler in its own separate method (e.g. `onTileClick()`).