In Missouri what age can a child that the parents have joint legal custody can move to the other parents home?

i live in missouri, while im not completely sure about the laws concerning leagal custody...i do know that after a certain age it is no longer the courts decision, it is yours. Also tho, if you are seventeen you can move out, but the first parent is able to take you to court and get you back.