Modified the tile.userData property to work properly.