fix mat
check_end_turn : end