+
+ bit SWCHB ; only do non-random pattern on difficulty b
+ bmi RandomBirdAI ; means switch is A
+
+ ; ldx Level ; if level is smaller than 5 random moves
+ ; cpx #5
+
+ ; bmi RandomBirdAI ; if smaller than this jmp
+ ldx ObjectX ; player x
+ cpx ObjectX+1 ; bird x
+ bmi MoveLeftStructuredBird
+
+ ldx #0
+ stx BirdLeftRightStatus
+ jmp LeftRightBirdAIDone
+MoveLeftStructuredBird
+ ldx #1
+ stx BirdLeftRightStatus
+
+ jmp LeftRightBirdAIDone
+
+RandomBirdAI