public void jarvisMarch(){
		lines.clear();
		currentHull.clear();
		for (Point i : points){
			i.usedYet = false;
		}
		
		Point max = new Point(0,0);
		Point next = new Point(0,0);
		int count = 0;
		double angle = 360;

		for(Point i : points){
			if(i.getY()>max.getY()){
				max = i;
			}
		}

		currentHull.add(new Point(0,max.getY()));

		currentHull.add(max);
		max.usedYet = true;

		while(currentHull.get(count+1)!=currentHull.get(1)||count==0){
			System.out.println("Infinite loop?");
			for(Point i : points){
				if(i!=currentHull.get(count+1) && i != currentHull.get(count)){
					if(angle>angleBetween(currentHull.get(count),currentHull.get(count+1),i)){
						next = i;
						angle = angleBetween(currentHull.get(count),currentHull.get(count+1),i);
						System.out.println("Biggest Angle: " + angle);
					}
				}
			}
			next.usedYet = true;
			currentHull.add(next);
			angle = 360;
			count ++;
			lines.add(new Line(currentHull.get(count),next));
		}
		repaint();
		//lines.add(new Line(currentHull.get(0),currentHull.get(1)));
		//lines.add(new Line(currentHull.get(1),currentHull.get(2)));
		//lines.add(new Line(currentHull.get(2),currentHull.get(3)));
		//lines.add(new Line(currentHull.get(3),currentHull.get(4)));
		//lines.add(new Line(currentHull.get(4),currentHull.get(5)));

	}