if ((gEnemyY3 = 7) and (gEnemyX3 < 7)) or ((gEnemyY3 = 6) and (gEnemyX3 < 6)) or ((gEnemyY3 = 5) and (gEnemyX3 < 5)) or ((gEnemyY3 = 4) and (gEnemyX3 < 4)) or ((gEnemyY3 = 3) and (gEnemyX3 < 3)) or ((gEnemyY3 = 2) and (gEnemyX3 < 2)) then
if gEnemyY3 = 7 then
if gLineFlip6[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 6 then
if gLineFlip5[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 5 then
if gLineFlip4[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 4 then
if gLineFlip3[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 3 then
if gLineFlip2[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 2 then
if gLineFlip1[gEnemyX3] = 9 then
EnemyUpRight3()
pNoChoice = 0
exit
end if
end if
end if
end if
end if
end if
end if
else
if gEnemyY3 < 7 then
if gEnemyY3 = 6 then
if gLineFlip7[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 5 then
if gLineFlip6[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 4 then
if gLineFlip5[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 3 then
if gLineFlip4[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 2 then
if gLineFlip3[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 1 then
if gLineFlip2[gEnemyX3] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
end if
end if
end if
end if
end if
end if
else
if gEnemyY3 < 7 then
if gEnemyY3 = 6 then
if gLineFlip7[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 5 then
if gLineFlip6[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 4 then
if gLineFlip5[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 3 then
if gLineFlip4[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 2 then
if gLineFlip3[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
else
if gEnemyY3 = 1 then
if gLineFlip2[gEnemyX3 + 1] = 9 then
EnemyDownLeft3()
pNoChoice = 0
exit
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
if pNoChoice = 1 then
repeat while gMoveBady3 = 1
pBadyDirection = random(4)
if pBadyDirection = 1 then
if ((gEnemyY3 = 7) and (gEnemyX3 < 7)) or ((gEnemyY3 = 6) and (gEnemyX3 < 6)) or ((gEnemyY3 = 5) and (gEnemyX3 < 5)) or ((gEnemyY3 = 4) and (gEnemyX3 < 4)) or ((gEnemyY3 = 3) and (gEnemyX3 < 3)) or ((gEnemyY3 = 2) and (gEnemyX3 < 2)) then