added calculatePrestige, chipsCost, nextChipCost functions