I have a piece of code that defines possible item types and enchantment types in a game. Some enchantment types are incompatible with each other or with certain item types. I wo