Trying to find the logic error in my acceleration.