buy treasure and calc points work in progress