@Override
	public ByteBuffer serialize() {
		ByteBuffer result = ByteBuffer.allocate(1024);
		BufferUtil.putString(result, name);
		result.put(type == PlayerType.PLAYING ? (byte)0 : (byte)1);
		result.put((byte)Arrays.asList(Side.values()).indexOf(side));
		result.flip();
		return result;
	}