changes genMoveListR function to work with the exception that it has duplication of moves and nils in the movelist