public  String identifyWinner(int quizId)
	{
		Iterator<Result> resultIterator= resultList.iterator();
		String resultString ="the winner(s)  ";
		List<Result> selectedQuizResult=null;
		int nextPlayerId=0;
		String playerName ="";
		int topScore=0;
		int score=0;
		int previousPlayerId =0;
		System.out.println("finalised quiz " + quizId);
			try {
				selectedQuizResult = new ArrayList<Result>();
				while(resultIterator.hasNext()){
					Result nextResult = resultIterator.next();
					int quizIdinResultFile = nextResult.getQuizId();
						
					if (quizIdinResultFile==quizId){
							selectedQuizResult.add(nextResult);
						}
				}
				Collections.sort(selectedQuizResult, new ResultSorter());
				
				for(int i=0; i<=selectedQuizResult.size()-1;i++){
					Result nextResult=selectedQuizResult.get(i);
					
					score = nextResult.getScore();
					nextPlayerId = nextResult.getPlayerId();
					playerName= nextResult.getPlayerName();
					
					if(i==0){
					  topScore=score;
					  previousPlayerId = nextPlayerId;
					  resultString = resultString + playerName + " ( " + nextPlayerId + " )" + "score: " + topScore;
					System.out.println(resultString);
					}
					
					if(nextPlayerId!= previousPlayerId){
						previousPlayerId = nextPlayerId;
						if(score==topScore){
							topScore= score;
						resultString = resultString + " ~~ " + playerName + " ( " + nextPlayerId + " )" + "score: " + topScore;
						}
					}
				}
			}
		catch (RemoteException e) {
				e.printStackTrace();
			}
		return resultString;
		
	}