new analysis added for cells with no neighbours