finish train controller prototype