made randomCells function compatible with new CellObj