setting up hazard spawning
fixed bug for loading restart