fixed generatemoves
fixed generatemoves