Greatly improved AI - it's pretty hard to beat now!
Merged.