Update game_manager.js

fix a bug in direction