Fixed bug in computer AI