built grid intersection finding logic