How courts determine the best interest of the child