some extra logic - may fail
I like random ai's much better now.
Fixed a bug or two.