renamed getCell to getCellAt.  Fixed a bug in the contiguousness algorithm.