adding the functions for the beginning of hand valuation