update piece class