@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2d = (Graphics2D)g;
		int currentPass = 0;
		int passesToComplete = 1;
		for(Entity c : entities) {
			if(c.renderPass < currentPass) {
				currentPass = c.renderPass;
			}
			else if(c.renderPass > passesToComplete) {
				passesToComplete = c.renderPass;
			}
		}
		while(currentPass <= passesToComplete) {
			for(Entity e : entities) {
				if(currentPass == e.renderPass) {
					drawCircle(g2d,e.posX,e.posY,e.radius,e.color);
				}
			}
			currentPass++;
		}
	}