Added method to get XY from tile-number