Safe interactive motion planning for autonomous cars