public boolean sendMove()
	{
		  isPossible=false;
		  chosenMovePiece=null;
		  
		  //I get the piece that the user is trying to move
		  for(int i=0; i < arraySquares.size(); i++)
		  {
			  if(arraySquares.get(i).getRow()==rowY && arraySquares.get(i).getCol()==colX)
				  chosenMovePiece =arraySquares.get(i).getPiece();
		  }

		  
		  //Piece for where do I want to move
		  MovePiece mPiece= new MovePiece(rowY,colX,tryRowY,tryColX);
		  System.out.println("move piece"+ mPiece.getRow()+ mPiece.getCol() +mPiece.getTryRow()+mPiece.getTryCol());
		  
		  //I see if the movement is possible for the chosenMovePiece
		  if(chosenMovePiece!=null)
			  	isPossible=tryMove(arraySquares, chosenMovePiece, mPiece);
		  
		 if(isPossible) 
		 {
			
			 System.out.println("movimiento posible");
			//I update the labels
			 board.doActionBoard(mPiece,chosenMovePiece);
			 
			//I update the arrayList if it has eaten a piece
			if(arraySquares.contains(new Square(tryRowY,tryColX)))
				arraySquares.remove(new Square(tryRowY,tryColX));
			
			//I update the arrayList of moving a piece
			 arraySquares.remove(new Square(chosenMovePiece,rowY,colX));
			 arraySquares.add(new Square(chosenMovePiece,tryRowY,tryColX));

		 	return true;
		 }
		 else
		 {
			 return false;//invalid move
		 }
	}