Complete the following sentence.

According to the judge, Dennis was a better parent then Neil so
Dennis gained custody of the children.