I don’t see it. I meant more like this. Actually show the tile type on the tile.
Obviously there is a problem because your path keeps changing. That shouldn’t happen.
Maybe put your project on github? If we get the whole thing it’s easier to point out what’s going wrong…