optimizing a repeat loop
fixed teammates' dying in Supreme Being