implement turnToHeading()