Fixed bug for removing CU's with health <=0.

With arrays of CU’s larger than 1, an error occured due to removing an
object from the CU array of Factory while using fast enumeration.
Solved it by index the CU’s in a ‚deathArray’. All CU’s with index in
the deathArray are deleted.