public boolean collision(int index1, int index2) {
		if (getImage(index1) == null || getImage(index2) == null) {
			return false;
		}
		if (getImage(index1).getBounds().intersects(
				getImage(index2).getBounds())) {
			return (getImage(index1).isActive() && getImage(index2).isActive());
		}
		return false;
	}