public Target(int X, int Y, int direction){
		
		x = X;
		y = Y;
		dir = direction;
		
		switch (direction){
		case 1: yApp = y + 2; xApp = x; dApp = 3; yDock = y + 1; xDock = x; break;
		case 2: xApp = x + 2; yApp = y; dApp = 4; xDock = x + 1; yDock = y; break;
		case 3: yApp = y - 2; xApp = x; dApp = 1; yDock = y - 1; xDock = x; break;
		case 4: xApp = x - 2; yApp = y; dApp = 2; xDock = x - 1; yDock = y; break;
		case 6: xApp = x; yApp = y; dApp = dir; break;
		}
		
		if(xApp < 0 || xApp > 13|| yApp < 0||yApp > 9 ){
			switchTarget();
		}
	}