Updating game.js to accept commands via WebSocket.