Added tile exits code, and removed map edge exits.