Added obstacle spawning control and added ground spawning.