More clean-up in TileManager and added my original algorithm for finding the range again.