Added methods and code to calculate tileFragments in the XY coordinate