restore the environment's health to maximum in the least generations to win game