adjusted jumping and movement code