Judges consider factors such as the involvement of each parent, the age of the children, living arrangements, stability, and the child's preferences.