Automapper: fix wrong tile orientation and correctly handle border tiles

Closes https://github.com/teeworlds/teeworlds/issues/1067