MakeTiles: refactor to simply main() method body
train: simplify logic in moveImpl
new-rail: try to make train smarter