private void put(Rectangle mainRect, Rectangle thisRect, Rectangle rect) {
		if((mainRect.getX() + mainRect.getWidth() - (thisRect.getX() + thisRect.getWidth())) > rect.getWidth()){
			putRightTo(thisRect, rect);
		} else if((mainRect.getY() + mainRect.getHeigth() - (thisRect.getY() + thisRect.getHeigth())) > rect.getHeigth()) {
			putBottomTo(thisRect, rect);
		} else if((mainRect.getY() + mainRect.getHeigth() - (thisRect.getY() + thisRect.getHeigth())) > rect.getHeigth()) {
			putLeftTo(thisRect, rect);
		} else if ((mainRect.getY() + mainRect.getHeigth() - (thisRect.getY() + thisRect.getHeigth())) > rect.getHeigth()) {
			putTopTo(thisRect, rect);
		}
	}