public void add(String name, int score){
		if(name.length()>20)
		name=name.substring(0,20);
		while(name.length()<=35)//adds spaces for space between name and score
			name+=" ";
		int i=0;
		for(i=0;i<10;i++){
			if(scores[i]<score)
			break;
		}
		if(i>=10)
		return;
		int temp=scores[i];
		scores[i]=score;
		for(int j=i+1;j<10;j++){
			int temp2=scores[j];
			scores[j]=temp;
			temp=temp2;
		}
		String str=names[i];
		names[i]=name;
		for(int j=i+1;j<10;j++){
			String str2=names[j];
			names[j]=str;
			str=str2;
		}
		update();
	}