Update game_manager.js

Save totalValue