private void parsePacket(byte[] data, InetAddress address, int port) {
		String message = new String(data).trim();
		PacketTypes type = Packet.lookupPacket(message.substring(0, 2));
		switch (type) {
		default:
		case INVALID:
			break;
		case LOGIN:
			Packet00Login packet = new Packet00Login(data);
			System.out.println("[" + address.getHostAddress() + ":" + port
					+ "] " + packet.getUsername() + " has connected...");
			PlayerMP player = null;
			if (address.getHostAddress().equalsIgnoreCase("127.0.0.1")) {
				player = new PlayerMP(game.level, 100, 100, game.input,
						packet.getUsername(), address, port);
			} else {
				player = new PlayerMP(game.level, 100, 100,
						packet.getUsername(), address, port);
			}
			if (player != null) {
				this.connectedPlayers.add(player);
				game.level.addEntity(player);
				game.player = player;
			}
			break;
		case DISCONNECT:
			break;
		}
	}