I think I figured out a way of simplifying my AI code significantly. Too bad today is a writing day because I *really* want to to test it out.