private void updateGame(final GameState state, Game game) {
if (state == null) {
gameResult("game ended");
}
else {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null)
session.fireCallback(new ClientCallback("replayUpdate", new GameView(state, game)));
}
}