public static Message parse(String message) {
		switch(Message.parseType(message)) {
			case ID_REQUEST:
				return new IdRequestMessage().decode(message);
			case ID_RESPONSE:
				return new IdResponseMessage().decode(message);
			case SPAWN:
				return new SpawnMessage().decode(message);
			case DESPAWN:
				return new DespawnMessage().decode(message);
			case MOVE:
				return new MoveMessage().decode(message);
			case BUMP:
				return new BumpMessage().decode(message);
			case SYNC:
				return new SyncMessage().decode(message);
			default:
				return null;
		}
	}