refactored movement/ jump to work in Ninja Physics