Implemented getJumpHeight(double width) for the max height with given
width