obstacle spawning and randomisation