Moved closer to getting algorithm right. added button to initiate AI move.