public static NetworkMessage parseMessage(byte[] data) {
		switch (data[0]) {
			case STRING_MESSAGE:
				return new StringMessage(data);
			case IDENTIFICATION_MESSAGE:
				return new IdentificationMessage(data);
			case ARRIVAL_CONFIRMED_MESSAGE:
				return new ArrivalConfirmedMessage(data);
			case GAME_MESSAGE:
				return new GameMessage(data);
			case DECISION_CREATION_MESSAGE:
				return new DecisionCreationMessage(data);
			case DECISION_MESSAGE:
				return new DecisionMessage(data);
			case GAME_START_MESSAGE:
				return new GameStartMessage(data);
			default:
				return null;
		}
	}