Move the pieces around with the left mouse button, rotate them with the right. Note that the pieces will 'stick' to each other when you bring them sufficiently close, and will then 'lock' and move together as a single unit.