finished int to hex. added piece reading