calculate material when victory