Corrected neighbor calculations on 2nd pass.
Attempt at making AI a little more interesting.