Added consideration for pawns about to promote, and AI pawns in the 1st or 8th rank promote to queens automatically now.