Added checkCell function
added checkCell fn