Environment Environment::GenerateNextMove(int &act) const{ bool posibles[7]; possible_actions(posibles); act++; while (act<7 and !posibles[act]) act++; if (act>6){ return *this; } else{ Environment nuevo = *this; nuevo.AcceptAction(static_cast<ActionType> (act)); nuevo.ChangePlayer(); return nuevo; } }