public void logic(Player p){
		if(!p.isFalling()){return;}
		if(new Rectangle(x,y,width,height).intersects(p.getRect())){
			if(p.getNumber()!=result){
				g.lose();
			}
			else{
				g.raiseSafeGround(y,this);
			}
		}
	}