Theory of Mind in Games and Markets