Refactored the GetJumpingSteps() method