Question: what are the requirements to get custody of a child?
Answer: Physical and mental health of parents.
Any special needs the child may have.
Need for a stable home environment.
Child's own wishes (if old enough to express this)