rename team::is_human() -> is_local_human

and is_ai -> is_local_ai
simplyfy conditional structure