Made enemy spawning work properly.