Use Math.abs() to calculate change in height.