How self-driving cars would work at an intersection