Check strengthened

Changed the check for speed to check if (current speed + added speed <
MAX_SPEED)

This should address the possibility of the speed exceeding MAX_SPEED
after adding speed but not before.