public Fruit(int courtWidth, int courtHeight) {
		super(INIT_VEL_X, INIT_VEL_Y, INIT_X, INIT_Y, SIZE, SIZE, courtWidth,
				courtHeight);
		//reads in fruit image
		try {
			File w = new File("watermelon.png");
			watermelon = ImageIO.read(w);
			File s = new File("strawberry.png");
			strawberry = ImageIO.read(s);
			File b = new File("bannana.png");
			bannana = ImageIO.read(b);
			File a = new File("apple.png");
			apple = ImageIO.read(a);
			File p = new File("peach.png");
			peach = ImageIO.read(p);
			File pine = new File("pineapple.png");
			pineapple = ImageIO.read(pine);
			File g = new File("grapes.png");
			grapes = ImageIO.read(g);
			File o = new File("orange.png");
			orange = ImageIO.read(o);
			File c = new File("cherry.png");
			cherry = ImageIO.read(c);
		} catch (IOException e) {
			System.out.println("Something went wrong");
		}
		
		//selects random fruit
		BufferedImage[] fruits = {watermelon, bannana, strawberry, apple,
				peach, pineapple, grapes, orange, cherry};
		int i = ((int) (Math.random() * fruits.length));
		fruit = fruits[i];
	}