fix out-of-index bug in Map.GetNeighbors()