Fixed memory leak in Factory classes.

To fix memory leak, each process must explicitly call a destructor function when
finished with the Move and Pokemon factories.