Text this: Finding optimal plans for multiple teams of robots through a mediator