fix check_victory()