refactoring some code, getting rid of double empties and sorting out
test isJump