Why were the union troops doing so bad in the US Civil War?

The black slaves helped the union in two ways. First, they escaped from the South bringing the confederate's economy down. And second, most of the blacks joined the Union army to help win the Civil War.