Clostest tiles method written