public void update(float delta)
	{
		System.out.println(x+" "+y);
		if(moving)
		{
			progress=Math.min(1, progress+speed*delta);
		}
		if(progress==1)
		{
			progress=0;
			moving=false;
			switch(dir)
			{
			case NORTH:
				y--;
				break;
			case SOUTH:
				y++;
				break;
			case WEST:
				x--;
				break;
			case EAST:
				x++;
			}
		}
	}