Made a unit and enemy manager to encapsulate the factories.