code: function performInGameCommand(msg, ack) {
          if(msg.cmd === MessageType.Leave) {
              leaveCmd(ack);
          } else if(msg.cmd === MessageType.GetState) {
              requestState(ack);
          } else if(msg.cmd === MessageType.GetPresets) {
              getPresets(ack);
          } else {
              // If we didn't handle the command ourselves,
              // delegate to the game manager
              manager.performCommand(player, msg, ack);
          }
      }
docs: Commands: Leave Leaves a game.  GetState Gets the current game state ack: game state  GetPresets Gets preset games for testing.