Phase Transition Model for Traffic at a Junction