Fix problem of intersection of doors

Sometimes train's doors are exactly on the edges of walls.
This commit fixes this problem.
4 jobs for 300-tracks-for-trains in 9 minutes and 28 seconds (queued for 3 seconds)