Identified error in counting neighbors. To be resolved.