Fixed so findTilesetMatchingTileIndex retunrs correct result