On the Legalities of Autonomous Vehicles