private void checkCollision(){
		for (int i= 0; i < 4; i++){
			int pX= this.player.getX();
			int pY= this.player.getY();
			int gX= this.ghosts[i].getX();
			int gY= this.ghosts[i].getY();
			if ((pX == gX) && (pY == gY)){
				if (this.ghosts[i].isEatenBy(this.player))
					killGhost(i);
				else {
					this.isDead= true;
					this.playerStateTimer.stop();
					this.deathTimer.start();
				}
			}
		}
	}