Two-Player Game Structures for Generalized Planning and Agent Composition