Added some braking code for the players.
ToDo: Fine-tune this, the movement seems jittery.