updated the Hand class according to previous commit.