Fixed bug in traffic domain

Fixed a bug in the traffic domain where the agent and an obstacle could switch places.