Updated the Map module to export the loadMapFile function.
Only use rectangles for collision/visibility.
Removed unused polygon code.
Renamed calculateRectangleSegments -> rectangleSegments.
Renamed calculateAABBForRectangle -> getRectangleAABB.
Handle tile flipping.