updated monster spawning logic