Hey guys

I'm trying to event a puzzle whereby (for example) There are four boxes (red, green, blue, yellow), and they must be pushed onto the corresponding block to open the door to the next room. I'm not really sure how to event this, and was wondering if anyone could perhaps offer some insight, or guidance in the right direction? :3.