moving move flags to states