There is a difference between happiness and pleasure and happiness requires no unhappiness to result in others. The only way a sadist can earn happiness is if they are only dealing with masochists and everyone is getting precisely what they want. But masochists do not want misery, they just enjoy the pain, which is as different from misery as happiness is from pleasure, though they may coincide.