The cartilage at the ends of the bones in a joint acts as a cushion, allowing the joint to move easily and painlessly.