What can children do to help make a decision when it comes to choosing what parent gets custody?

The children can only speak to the judge and the parents lawyer. Many judges will let a child choose who to live with if they are old enough.