using break statements to iterate through AI moves