Problem with millis(); resets within 60 seconds

  unsigned int x = millis();

Read the other posts again. Not unsigned int, unsigned long.