Muscles work in pairs around the joints. While one muscle tightens, the other relaxes and so the joint is pulled into a new position.