Changed method checkCell