There are multiple ways and explanations of the code. Just click "See Inside" and take a look to learn how. Click on pieces, then click on doll or move following piece to doll. If clicking does not do something, then you can resort to dragging. To move the heart shirt just press the space key.
@RomaniM - this is a proper remix of their project @MabonBaladevaKain - I added many snap-to placement codes. This is to show that there are many different ways to snap pieces to a doll. You must look at the code inside to fully appreciate this project. Inside you will learn how and why things happen as they do.