 void levelComplete() {
 	stageStartTime = millis();
 	stage = WIN;
-	if (levelNumber == LEVEL_COUNT) stage = COMPLETE;
+	if (levelNumber == LEVEL_COUNT)
+	{
+		stage = COMPLETE;
+		++stats_playthroughs;
+		EEPROM.write(0, stats_playthroughs);
+		int newBest = (int)((millis() - gameStartTime) / 1000);
+		if (newBest > stats_besttime) {
+			stats_besttime = newBest;
+			EEPROM_writeint(1, stats_besttime);
+		}
+	}
+	updateStats();
 	lives = 3; //min(3, lives + 1);
 }
 

	FastLED.addLeds<LED_TYPE, DATA_PIN, LED_COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
	FastLED.setBrightness(BRIGHTNESS);
	FastLED.setDither(1);

	// Life LEDs
	loadLevel();

	//Serial.begin(9600);
	//while (!Serial);

	stats_playthroughs = EEPROM.read(0);
	stats_besttime = EEPROM_readint(1);

	// MPU
	Wire.begin();
	accelgyro.initialize();
