public Enemy setEnemy(int layerPosition,int x, int y, int damage, int health, int gravity, String name[], boolean canColide){
		String namePath[] = new String[name.length];
		for (int i =0; i< name.length; i++){
			namePath[i] = "res/images/" + name[i];
		}
		if(name[0].compareTo("Jumper_0.png")==0){
			listOfEnemies[layerPosition] = new Jumper(x, y, damage, health, gravity, namePath, canColide);
		}
		else if(name[0].compareTo("Bumbler_0.png")==0){
			listOfEnemies[layerPosition] = new Bumbler(x, y, damage, health, gravity, namePath, canColide);
		}
		else if(name[0].compareTo("Floater_0.png")==0){
			listOfEnemies[layerPosition] = new Floater(x, y, damage, health, gravity, namePath, canColide);
		}
		else if(name[0].compareTo("Patrol_0.png")==0){
			listOfEnemies[layerPosition] = new Patrol(x, y, damage, health, gravity, namePath, canColide);
		}
		else listOfEnemies[layerPosition] = new Jumper(x, y, damage, health, gravity, namePath, canColide);
		return listOfEnemies[layerPosition];
	}