Added a player and code for saving the outpud of the simulation