more logic implemented - fixed a bug in the jump movement