private void elfCollision() 
	{
		for(int i = 0; i < TestState.elves.size(); i++)
		{
			if(dir.equals("right"))
			{
				Rectangle r = new Rectangle(x + w/2, y - 1, w, 3);
				if(TestState.elves.get(i).getRec().intersects(r))
				{
					TestState.elves.get(i).playSound();
					TestState.elves.remove(i);
					i--;
				}
			}
			
			if(dir.equals("up"))
			{
				Rectangle r = new Rectangle(x -1, y - (int)(h*1.5), 3, h);
				if(TestState.elves.get(i).getRec().intersects(r))
				{
					TestState.elves.get(i).playSound();
					TestState.elves.remove(i);
					i--;
				}
			}
			
			if(dir.equals("down"))
			{
				Rectangle r = new Rectangle(x -1, y + h/2, 3, h);
				if(TestState.elves.get(i).getRec().intersects(r))
				{
					TestState.elves.get(i).playSound();
					TestState.elves.remove(i);
					i--;
				}
			}
			
			if(dir.equals("left"))
			{
				Rectangle r = new Rectangle(x - (int)(w*1.5), y - 1, w, 3);
				if(TestState.elves.get(i).getRec().intersects(r))
				{
					TestState.elves.get(i).playSound();
					TestState.elves.remove(i);
					i--;
				}
			}
		}
	}