Fixing the move generation.