Getting neighbors and OR gate done.