Added hash function for tiles