Changed marker update loop so it exits after group is dead.

Infinite if loop -> conditional while loop