public void changeRectanglePos(int rectId, int result[]){


		for(Rectangle rectangle: listRectangles){
			if(rectangle.getRectId() == rectId){

				rectangle.setX(result[0]);
				rectangle.setY(result[1]);
				rectangle.repaint();
				boolean removed= removeCircleIfExists(result[0], result[1]);
				if(removed){
					
					try{
						
						SHServiceClient bufferModel= rectangle.getSHServiceClientV().getModel();
						Rectangle bufferRectangle= bufferModel.getMyRectangle();
						Color buffercolor= bufferRectangle.getColor();
						
						if(rectangle.getColor() == buffercolor){
							
							SHServiceClient model= rectangle.getSHServiceClientV().getModel();
							model.addScore();
						}
						
					}catch(RemoteException e){
						
						throw new IllegalStateException("RemoteException occured. Could not get the data of the model from the server.", e);
					}
				}
			}
		}
	}