Custody of a minor child is determined by the best interests of the child. While the wishes of the child are taken into consideration, they are not necessarily controlling.
Recently I represented the father of a 17 year old boy who wanted to live with his mother. The evidence showed that the mother had imposed no curfews, had let him drink and smoke marijuana and had not encouraged him to attend school. The court awarded custody to the father. Obviously this decision was extremely unpopular with the boy and his mother but was clearly in his best interests.