Hi , i am making game where the user has to pick up objects from the world and put them according to a given design at each level so that it fits the predefined shape, like in the image below those three blocks to fit the shape defined ....

Can any one give me a general idea as to what kind of logic i might need to implement here to find out if the object in the world now matches the exact shape as is predefined at each level and how do i check it .... help will be highly appreciated here...
Regards
Jin

Can any one give me a general idea as to what kind of logic i might need to implement here to find out if the object in the world now matches the exact shape as is predefined at each level and how do i check it .... help will be highly appreciated here...
Regards
Jin