 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);
 }
 

		// Left or right?
		playerPosition = 200;
		spawnEnemy(1, 0, 0, 0);
		break;
	case 1:
		// Slow moving enemy

#define JOYSTICK_DEADZONE        10        // Angle to ignore
int joystickTilt = 0;                      // Stores the angle of the joystick
int joystickWobble = 0;                    // Stores the max amount of acceleration (wobble)

// LCD and stats
LiquidCrystal lcd(52, 53, 50, 51, 48, 49);
byte stats_playthroughs = 0;
int stats_besttime = 0;
long gameStartTime = 0;

// WOBBLE ATTACK
#define ATTACK_WIDTH             70         // Width of the wobble attack, world is 1000 wide
