add hash method to tile