Fix bug #181081: "avatar is caught in an unreachable area"
Review Request #125636 - Created Oct. 14, 2015 and submitted
When Kapman makes a half-turn right after taking a turn at a corner, it may
go through an opposing wall.
This fix is rather ugly, but a better solution would probably need quite
some refactoring. So, just fix it for now.
Also merge duplicate code paths in the same function.
Played, could not trigger bug any more.