Improvements/fixes for simulateBuy

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