public static void saveHighScores(){
		//Erase and recreate save file
		try{
			Game.file.delete();
		}catch(Exception e){
			e.printStackTrace();
		}
		try{
			if (!Game.file.exists()) {
				Game.file.createNewFile();
			}
		}catch(IOException e){
			e.printStackTrace();
		}

		long winnerTime = (Game.stopTime-Game.startTime)/100;
		String name = JOptionPane.showInputDialog ( "You win! Enter your name:\n" );
		
		int i;//Counts location in list
		//Find location to place new score
		for(i=0; i<10; i++){
			if(names[i] == null) break;
			if(winnerTime<=scores[i]){
				break;
			}
		}
		//insert the new score, if in top ten
		if(i<10)
			insertScore(winnerTime,name,i);
			
		for(i=0;i<10;i++){
			if(names[i] == null) break;
			Game.writeScore(names[i], scores[i]);
		}
	}