Defining neighbors and actions associated with