Better click-to-tile function.