Moved factory into main game.