Determines if a group of stones has been captured.