added a method to generate semiunique tileIDs