private void update(){
		File file = new File("highscores.txt");
		try{
			BufferedWriter writer = new BufferedWriter(
						new FileWriter(file));
			for(int i=0;i<10;i++){
				if(scores[i]==0)
					break;
				writer.write(names[i]+"/"+scores[i]+"\n");
			}
			writer.close();
		} catch(IOException e){
			e.printStackTrace();
		}
		getHighScores();
	}