rename madnessCost to cost, replace getRefCard with getCard