public void checkCollision() {
		if (rec.intersects(MainClass.rachel.recParent)
				|| rec.intersects(MainClass.rachel.recChild0)
				|| rec.intersects(MainClass.rachel.recChild1)) {
			visible = false;
			if (MainClass.rachel.getCurrentHealth() > 0) {
				MainClass.setScore(MainClass.getScore() + 1);
				MainClass.rachel.setCurrentHealth(MainClass.rachel
						.getCurrentHealth() - 1);
			}
			if (MainClass.rachel.getCurrentHealth() == 0) {
				MainClass.rachel.setCenterX(-500);
				MainClass.setScore(MainClass.getScore() + 100);
			}
		}
		for (int i = 0; i < MainClass.idf.size(); i++) {
			JIDF IDF = (JIDF) MainClass.idf.get(i);
			if (rec.intersects(IDF.rec)) {
				visible = false;
				if (IDF.getCurrentHealth() > 0) {
					MainClass.setScore(MainClass.getScore() + 1);
					IDF.setCurrentHealth(IDF
							.getCurrentHealth() - 1);
				}
				if (IDF.getCurrentHealth() == 0) {
					IDF.setCenterX(-500);
					MainClass.setScore(MainClass.getScore() + 10);
					MainClass.idf.remove(IDF);
				}
			}
		}
	}