Fixing bug in calc neighbors for corner cells