Improvements to generatemoves