private void listenSocket() {
		
		// Create server
		try {
			serverSocket = new ServerSocket(port);
		} catch (IOException e) {
			System.err.println("Could not listen on port: 10007.");
		}
		
		
		//Wait for clients to connect
		while(true){
			
			// Temp client object
			Client c;
			try {
				System.out.println("Waiting for Client");
				clientSocket = serverSocket.accept();
				clientCount++;
			} catch (IOException e) {
				System.out.println("Accept failed.");
			}	
			if(clientCount >= 1){
				break;
			}
		}
				
		
		try {
			out = new ObjectOutputStream(clientSocket.getOutputStream());
			in = new ObjectInputStream(clientSocket.getInputStream());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}