Added the ability to spawn different obstacles