Changed in getJumpHeight maxwidth and maxheight to momentwidth and
momentheight