Fix tax computation.

Also add a test script that wins the game using wizard mode.