Theory of Mind Using Active Inference: A Framework for Multi-Agent Cooperation