private void spawnEnemy(double deltaTime) {
        timeSinceLastSpawn += deltaTime;
        if (timeSinceLastSpawn > 2){
            Random random = new Random();
            Vector2f position = new Vector2f(random.nextInt(700) + 50, random.nextInt(300));
            spawnEntity(spawner, position);
            timeSinceLastSpawn = 0;
        }
    }