moved IK logic from Bone class to Model class