Add an isHidden() method to check pile equality