Made several changes and did some bug fixes for getCell and
hasIncorrectCell.