Check for matching pieces