Added generatemoves