ai move functions in board class