correction on player inputs and calculus over the speed