private static void drawAll(Graphics g, Collection<Point> centers,
			Collection<Point> points, List<Collection<Point>> prevCenters) {
		
		try {
		    Thread.sleep(FRAME_TIME);
		} catch(InterruptedException ex) {
		    Thread.currentThread().interrupt();
		}
		g.clearRect(0,0,400,400);
		g.fillRect(0, 0, 400, 400);
		
		for(Point p : points){
			p.draw(g);
		}
		
		if(TRAILS) {
			Collection<Point> prev = prevCenters.get(0);
			for(int i = 1; i < prevCenters.size(); i++){
				Collection<Point> current = prevCenters.get(i);
				for(Point p : current){
					Point prior = getOfMatchingColor(p, prev);
					g.setColor(p.getColor());
					g.drawLine(prior.getX(), prior.getY(), p.getX(), p.getY());
					
					Color temp = prior.getColor();
					prior.setColor(Color.GRAY);
					prior.drawAsCenter(g);
					prior.setColor(temp);
				}
				prev = current;
			}
			for(Point p : prev){
				p.drawAsCenter(g);
			}
			g.setColor(Color.LIGHT_GRAY);
			
			
		} else {
			
			for(Point c : centers){
				c.drawAsCenter(g);
			}
		}
			
		
	}