public void switchTarget(){
		
		switch (dir){
		case 3:	
			if(y < 8){ yApp = y + 2; xApp = x; dApp = 3; yDock = y + 1; xDock = x; dir = 1; reversed = !reversed;
			} break;		
		case 4:	
			if(x < 12){xApp = x + 2; yApp = y; dApp = 4; xDock = x + 1; yDock = y; dir = 2; reversed = !reversed;
			} break;	
		case 1:		
			if(y > 1){yApp = y - 2; xApp = x; dApp = 1; yDock = y - 1; xDock = x; dir = 3; reversed = !reversed;
			} break;	
		case 2:		
			if(x > 1){xApp = x - 2; yApp = y; dApp = 2; xDock = x - 1; yDock = y; dir = 4; reversed = !reversed;
			}  break;
		}
	}