Changed GUI to use the Factory to create Simulator