How to assign tracks to trains