updated game.js to use new /api/game/gamestate endpoint