public void run() {
		
		
		
        for(;;) { // animation loop never ends
        	if(newfruit) {fruits.add(new Fruit()); newfruit = false;}
        	bufferGraphics.clearRect(0, 0, getSize().width,getSize().height);
        	/*for(Fruit f: fruits){
            if (f.isFalling) {
            	
            	if(f.radius >= 10) {f.GRAVITY = -9;}
            	if(f.radius >= 16) {f.GRAVITY = -15;}
            	if(f.radius < 10 && f.radius >= 5) {f.GRAVITY = -4;}
            	if(f.radius < 5) {f.GRAVITY = -1;}
            	
                if(f.height - f.radius > 0) {
                    f.height =  f.height + (.5 * f.GRAVITY * (f.time * f.time) );
                    f.ypos = appletSize_y - f.height;
                    f.time += .02;
                } else {
                    f.isFalling = false;
                    f.time = 0;
                }
            }
            xpos = f.xpos;
            ypos = f.ypos;
            height = f.height;
            radius = f.radius;
            color = f.color(f.color);
            repaint();
           
        	}
        	for(Gastro g: players) {
        		velx = g.velx;
                ypos = g.locy;
                color = Color.YELLOW;
        		g.locx = g.locx + velx;
        		if(g.locx <= -5) g.locx = 504;
        		if(g.locx >= 505) g.locx = -4;
        		xpos = g.locx;
        		
        		repaint();
        	}*/
        	repaint();
        	try {
                Thread.sleep(10); 
            //Thread.sleep(10);
        } catch (InterruptedException e) {
        }
        	
        				for(Fruit f: fruits){
        				if((f.ypos + f.radius) >= (player.locy + 10))
        					if(checkCollisions(f)) {
        						total+=WORTH;
        						f.isFalling = false;
        						f.color = 27;
        					}
        				}
        		int j = fruits.size();
       	       	for(int i = 0; j > 0 && i < j; i++) {
       	       		if(fruits.get(i).isFalling == false) {
       	       			fruits.remove(i);
       	       			fruits.add(new Fruit());
      	                j--;
       	                i--;
        	  		}
              	}
        	
       	       	
        	}
        }