Set of conditions

Now that I look at it and do it accordingly, this solution doesn’t fit what I wanted because yeah, right, boxes have to be on plates, but they can be on any plate and still work, not all boxes have to be in a plate for a door to activate, furthermore, some levels may have more and less plates, not just a set of boxes and plates for every level. So what I thought is check if the boxes are overlapping with the plates and create an array from those, then use this array to check for the color. How would you do that?