ironing out issue with cell neighbor calculation