Introducing the "refCount" field in tiles and entities, much easier to manage