public   boolean    moveCardUp1(String x, int index,int corXd,int corYd , int cardNumber){
	   
	new java.util.Timer().schedule( 
	        new java.util.TimerTask() {
	            @Override
	            
	            public  void run() {
	
		
	
	            	if(index!=-1){
	            	arrayOfPicturesForDealer.get(index).setVisible(false);
	            	arrayOfPicturesForDealer.get(index).setBounds(StartPointXD,StartPointYD,100,100);
	    			
	    			arrayOfPicturesForDealer.get(index).setVisible(true);
	            	
	            	twoDPanel.add(arrayOfPicturesForDealer.get(index));
	            	}
	            	else {
	            		ima.setVisible(false);
	            		ima.setBounds(StartPointXD,StartPointYD,100,100);
	            		ima.setVisible(true);
	            		twoDPanel.add(ima);
	            	}
	            	twoDPanel.repaint();
	            	
	    			if(isCoordinatorXD()==true)
	    			StartPointXD+=5;
	    			if(StartPointXD>corXd){
	    				arrangeTheCardsofDealer();
	    				setCoordinatorXD(false);
	    			StartPointYD-=5;
	            	
	            
	    			}
	    			
	    			if(StartPointYD<corYd){
			            setCoordinatorYD(false);
			            if(x.equals("the player wins") || x.equals("the computer wins") ){

						
					startGame.setVisible(true);
										
						TurnTheCard();
						twoDPanel.repaint();
						
				//	JOptionPane.showInternalMessageDialog(getContentPane(), x+"");

										

										
										if( x.equals("the player wins"))
										{
											win.setText("" +(1+Integer.parseInt(win.getText())));
											addChipsToPlayer();
										}
										else if( x.equals("the computer wins")){
//									
											lose.setText("" +(1+Integer.parseInt(lose.getText())));
											removeChipsFromPlayer();
										}
										money.repaint();
										system.getD().getComputer().removeHandArray();
										system.getD().getchalenger().removeHandArray();
										  this.cancel();
								
			            
setChipsTrue();
moneyForGambling.setText(""+0);
       }
			            if(cardNumber==1) makeButtonNotVisible();
			            else makeButtonVisible();
			            this.cancel();
			    			}
			    			
	} 			
	            },0,10);
    return true;

}