Adapting to Teammates in a Cooperative Language Game