 		++stats_playthroughs;
 		EEPROM.write(0, stats_playthroughs);
 		int newBest = (int)((millis() - gameStartTime) / 1000);
-		if (newBest > stats_besttime) {
+		if (newBest < stats_besttime) {
 			stats_besttime = newBest;
 			EEPROM_writeint(1, stats_besttime);
 		}
-	}
-	updateStats();
+		updateStats();
+	}
 	lives = 3; //min(MAX_LIVES, lives + 1);
 }
 

	lcd.print(stats_playthroughs);

	lcd.setCursor(0, 2);
	lcd.print("Best time: ");
	lcd.print(stats_besttime);
}

// ---------------------------------

// GAME
enum Stage { SCREENSAVER, PLAY, COMPLETE, DEAD, WIN, GAMEOVER };

long previousMillis = 0;                   // Time of the last redraw
int levelNumber =                      0;
long lastInputTime = 0;
#define TIMEOUT                        60000
#define LEVEL_COUNT                    14
