public ServerListen(Socket connection) {
		try {
			ObjectInputStream oInputStream;
			ObjectOutputStream oOutputStream;
			this.connection = connection; 
			oInputStream = new ObjectInputStream(connection.getInputStream());
			client = (Player) oInputStream.readObject();
			
			clientIp = connection.getInetAddress().getHostAddress();
			username = client.getPlayerName();
			for (int i = 0; i < Server.players.size(); i++) {
				if(Server.players.get(i).getPlayerName().equals(username)) {
					client.setPlayerName(username + "(1)"); 
				}
			}
		
			Server.players.add(client);
			
			oOutputStream = new ObjectOutputStream(connection.getOutputStream());
			oOutputStream.writeObject(client.getPlayerName());
			
			System.out.println("Server: Client with username:"+ client.getPlayerName() + " connected successfully");
			Server.list_clients_model.addElement(client.getPlayerName() + " - " + clientIp);
			System.out.println("Server: Thread for user " + client.getPlayerName() + " successfully started!");
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}