Home environment plays a huge role in determining custody. Unstable, unsafe, or unhealthy homes (i.e. unsecured loaded weapons everywhere, messy and unhealthy surroundings, or rampant stress and chaos) will only hurt a parent's chances of winning custody. The most common situation, however, is the Court having to decide the better of two homes, because neither are bad.