fixed bugs related to ai move delay