now generating borders for tiles