Fixed startRailPosition. Now we can merge rails along two sides