extract-method for grid neighbors