Making sure maxSpeed never goes negative