The court will gather information from both parents, the child, and others who may be able to contribute such as teachers. Judges often look at the relationship of the child with each parent, not just during courtroom appearances but seek out any information about the relationship over the last few years. Ultimately, the judge wants to understand the child's life as much as possible to make the best decision.