completed compPlayHand function