Implements decelerate method in Car.java