Refactored EnemySpawner class.