public void addConnection(PlayerMP player, Packet00Login packet){
		boolean alreadyConnected = false;
		for(PlayerMP p : this.connectedPlayers){
			if(player.getUsername().equalsIgnoreCase(p.getUsername())){
				if(p.ipAddress == null){
					p.ipAddress = player.ipAddress;
				}
				if(p.port == -1){
					p.port = player.port;
				}
				alreadyConnected = true;
			} else {
				// relay to the current connected player that there is a new player
				sendData(packet.getData(),p.ipAddress,p.port);
				
				// relay to the new player that the currently connected player exists
				packet = new Packet00Login(p.getUsername(),p.x,p.y);
				sendData(packet.getData(),player.ipAddress,player.port);
			}
		}
		if(!alreadyConnected){
			this.connectedPlayers.add(player);
		}
	}