Added helpers to check for y-coordinate neighbors