The court will examine a number of factors, including who the children are living with at the time the custody determination is made, the children’s historical relationship with each of the parents, and each of the parents’ ability to care for the children.