public static void main(String[] args) throws IOException
	{
		try
		{
			final int port = 6066;
			ServerSocket serverSocket = new ServerSocket(port);
			System.out.println("Waiting for users...");
			
			while (true)
			{
				Socket clientSocket = serverSocket.accept();
				//connectionList.add(clientSocket);
				
				String userName = "";
				boolean unique = false;
				while (unique == false)
				{
					Scanner userInput = new Scanner(clientSocket.getInputStream());
					PrintWriter userOutput = new PrintWriter(clientSocket.getOutputStream());
					userName = userInput.nextLine();
					
					User user = new User(userName,clientSocket.getInetAddress(),clientSocket.getPort());
					
					if (mapTest.containsValue(user))
					{
						userOutput = new PrintWriter(clientSocket.getOutputStream());
						userOutput.println("%^&false");
						userOutput.flush();
					}
					else
					{
						mapTest.put(clientSocket,user);
						unique = true;
					}
				}				
				
				AddUserName(userName);
				
				ServerSend chat = new ServerSend(clientSocket);
				Thread chatThread = new Thread(chat);
				chatThread.start();
			}
			
		}
		catch (Exception e)
		{
			System.out.println("User could not connect to server (MAIN).");
			System.out.println(e.getMessage());
		}
	}