Improvements/fixes for simulateBuy
Improvements/fixes for simulateBuy

Now calculating gains before simulation if necessary (fixes #38).
Don't force rebuild of store and upgrades every time.

greenc/CookieMaster,bawjensen/CookieMaster,bawjensen/CookieMaster