added a physics class and put the jumpPhysics method