implement obstacle and zombie spawning