changed calculations for horizontal speed and verticaldampening