Iterator exception

Fixed crash related to threading and checking the layers of the map in
pointFree()

Fixed crash related to calculating selectable tiles outside of the map
range

Fixed bug where attack range would not use map blocks in its calculation