add helper distance func for tiles
removed comments