Legal is related to Just. 
Cage is related to Trap. Trap is related to Mine. Mine can be used for Explode. 
Legal <--RelatedTo--> Just 
Cage <--RelatedTo--> Trap <--RelatedTo--> Mine --UsedFor--> Explode 