Changed getBorderCells to public