Making the simulation object global object