Less one if for quad neighbor function.