added ai to make moves