train control

Sorry
cant recall the first code i made.
but the main mistake is in post 3.

won`t do it again :-[