public void newFruit() {
		int r = rand.nextInt(5);
		Fruit fruit;

		if (r == 0) {
			fruit = new Orange();
		} else {
			fruit = new Apple();
		}
		// Makes sure fruit doesn't spawn on obstacles or snakes
		if (fruit.spawned == false) {
			for (Obstacle o : obstacles) {
				if (fruit.x == o.getX() && fruit.y == o.getY()) {
					fruit.newPosition();
					newFruit();
				}
			}
			for (Snake s : snakes) {
				if (fruit.x == s.getX() && fruit.y == s.getY()) {
					fruit.newPosition();
					newFruit();
				} else {
					fruit.spawned = true;
					fruits.add(fruit);
				}
			}
		}
	}