public void raiseSafeGround(int y, Platform p){
		oldSafeGround=safeGround;
		safeGround=y;
		ArrayList<Platform> avail = new ArrayList<Platform>();
		for(Platform pe : platforms){
			if(pe.getY()>=y){removePlatform(pe);}
			if(pe.getY()>=y-HEIGHT_BETWEEN_PLATFORMS&&pe.getY()<y){avail.add(pe);}
		}
		player.setNumber(avail.get(rand.nextInt(avail.size())).getResult());
		generateLevel(y-HEIGHT_BETWEEN_PLATFORMS*LEVELS_VISIBLE);
		ticksToExpand = EXPANDING_TICKS;
		blackSpace = new Rectangle(p.getX(), p.getY(), p.getWidth(), p.getHeight());
		levelsDone++;
		dyingTicks = (int)(DYING_TICKS_DEFAULT/(1.0f+levelsDone/10));
		score=calcScore(score,levelsDone);
	}