Perfect
I can't imagine any way to improve it (other than network code for online play :) ) So, the computer player is pretty intelligent. I would assume that you didn't write the script for it, considering that is an absolutely tremendous task. However, if you did, I bow to you.