Hearts logic