Dynamically allocate move array
At least it compiles...might have problems in gen