some more changes to use tile_type_class