Added state persistance to registrey for restart play