public void hand(Point point){
		if(selectedShape != null && (selectedShape.contains(point) || isResizing)){
			isResizing = true;
			if(selectedTool == Tool.MOVE)
				moveShape(point);
			else
				resizeShape(point);
		}
		else {
			boolean found = false;
			for(int i = shapesList.size()-1; i >= 0 && !found; i--){
				if(shapesList.get(i).contains(point)){
					selectedShape = shapesList.get(i);
					found = true;
				}
			}
			if (!found){
				selectedShape = null;
			}
			repaint();
		}
	}