fixed upgrades.toLevel; level2 win cond.