Added event listeners for tiles