public void run() {
		_running = true;
		
		ArrayList<Scanner>  inputList = new ArrayList<Scanner>();
		ArrayList<PrintWriter> outputList = new ArrayList<PrintWriter>();
		
		while(true)
		{
			try{
				Socket clientConnection = _socket.accept();
				//increment the number of connected clients

				
				
				PrintWriter writer = new PrintWriter(clientConnection.getOutputStream());
				inputList.add(new Scanner(clientConnection.getInputStream()));
				outputList.add(new PrintWriter(clientConnection.getOutputStream()));
				
				//add the socket to the socketList
				_socketList.add(clientConnection);
				//add the host itself as a client to the network
				ClientHandler newThread = new ClientHandler(_clients,clientConnection,_count,_socketList,inputList,outputList);

				_clients.add(newThread);
				System.out.println("newClientthread");

				newThread.start();
				//inform the new player of its own index
//				if(_count!=1){
//					writer.println(""+_count);
//					writer.flush();
//				}
				_count++;

				//when the game starts, stop waiting for more clients to join the game
				if(stopAcceptingClients)
				{
					break;
				}
			}


			catch(Exception e)
			{
				System.out.println("client connection error");

			}

		}

	}