added handling of different Tiles