High card and flush

I am able to determine the high card of the hand as well as if the hand
is a flush or not