Added the ability to pause the simulation via spacebar or a tick box