If the parties cannot agree on a custody arrangement, then the judge will make the determination of custody. Even with a recommendation from a guardian ad litem, the judge still has full discretion to make the custody determination based on all evidence presented at trial.