altered gambling formula so it has max money constant