Bug Fixes in Train Controller

Train's were going into a DONE state when they got blocked
on a edge and acquired it before fully stopping.

Notify on all stopped trains wasn't notifying when some trains
were blocked.