update pieces