public void move(Direction dir) {
		int x = 0, y = 0;
		if (dir == Direction.LEFT) x = -1;
		else if (dir == Direction.RIGHT) x = 1;
		else if (dir == Direction.UP)  y = -1;
		else if (dir == Direction.DOWN) y = 1;

		setLocation(location().x + x, location().y + y);
		for (Point p : attachedPoints) {
			p.x = p.x + x; 
			p.y = p.y + y;
		}
	}