Simplify checkCell a bit.