Added savegame analysis code