Added the getBorderCells() method