public void setBoundedY(double targetY, int height, double top, double bottom){
		if (targetY < top) {
			targetY = top;
		} else if (targetY + height > bottom) {
			targetY = bottom - height;
		}
		this.setY(targetY);
	}