Fixed bug when loading maps.
Slight speedup in Grid due to inline functions. (Used gprof beforehand)