adding with more functionality, stuck ondetermining card value