Further refined AI logic and improved AI Logic Test output