public void attack(){
		if(isAlive){
			for(int i = 0; i < Driver.spawner.getEnemies().size(); i++){
				if((Driver.spawner.getEnemies().get(i).getX() > getX()) && (Driver.spawner.getEnemies().get(i).getX() < getX()+current.getRange()+80) && (Driver.spawner.getEnemies().get(i).getY() == getY())){
					Driver.spawner.getEnemies().get(i).setHealth(Driver.spawner.getEnemies().get(i).getHealth() - current.getPower());
						if(Driver.spawner.getEnemies().get(i).getHealth() <= 0){
							enemiesEliminated++;
							Driver.store.addCoins(10);
							Driver.spawner.getEnemies().remove(i);
						}
				}
			}
		}
	}