public void removePointsInLine() {
		Node prev = head;
		Node next = head.next();
		while (next != null) {
			if (prev.getX() == next.getX() && next.next() != null
					&& next.getX() == next.next().getX()) {
				prev.addLink(next.next());
			} else if (prev.getY() == next.getY() && next.next() != null
					&& next.getY() == next.next().getY()) {
				prev.addLink(next.next());
			}
			prev = next;
			next = next.next();
		}
	}