fixed MaxTime set and sum of soldiers