public synchronized String finaliseQuiz(QuizServer quizAccess){
		
		Iterator<Quiz> quizIterator=null;
		Quiz quizToBeFinalised =null;
		String winnerDetails=null;
		try{
			int qid=0;
			System.out.println("Enter a quiz id to finalise:");
			int quizId = Integer.parseInt(bufferedReader.readLine());
			Set<Quiz> quizList=quizAccess.getQuizList();
			quizIterator = quizList.iterator();
			while(quizIterator.hasNext()){
				Quiz nextQuiz = quizIterator.next();
				qid = nextQuiz.getQuizId();
				if(qid==quizId){
				 quizToBeFinalised = nextQuiz;
				 System.out.println("quiz number: " + quizId + " is finalised");
				}
			}
			
			quizList.remove(quizToBeFinalised);
			quizAccess.quizFileReWriter(quizList);
			
			winnerDetails = quizAccess.identifyWinner(quizId);
			System.out.println("hello here is the quiz id"+ quizId);
		}
		catch(RemoteException remoteException){
			remoteException.printStackTrace();
		}catch(IOException ex){
			ex.printStackTrace();
		}
		
		return winnerDetails;
	}