detecting peak of players jump