Effective Teamwork Using a Theory of Mind Over Plans