add logic to detect cells to the west and northwest