Update game_manager.js

checkValid