近傍の座標を取得する
https://gyazo.com/a1248b562240588435a7b5a1ed992266
ref
Minesweeper AtCoder Beginner Contest 075 B - はまやんはまやんはまやん
グリッド問題