move obsticle spawning to timer