Update game_manager.js

Moved updates of max value to right place