public void spawnEnemies(int n) {
        Patch spawnPoint;
        int m = (int) (n * .2);
        int failsafe = 42;
        while (n > 0 && failsafe > 0) {
            spawnPoint = enemySpawnPoints.get((int) (Math.random() * enemySpawnPoints.size()));
            if (spawnTurtle(spawnPoint.getX(), spawnPoint.getY(), "Slime")) {
                n--;
            }
            failsafe--;
        }
        while (m > 0 && failsafe > 0) {
            spawnPoint = enemySpawnPoints.get((int) (Math.random() * enemySpawnPoints.size()));
            if (spawnTurtle(spawnPoint.getX(), spawnPoint.getY(), "Wolf")) {
                m--;
            }
            failsafe--;
        }
    }