Optimized tilemap drawing and rewrote the tilemap loader.