fixed bug where tons of obstacles spawn at once