change if position to speed up

checking state == 1 || state == 2 is cheap operation compareing to member["health"].Number(), so changing if condition position is better