refactored classes, removed unneeded things, moved parts of fields to
MapData, deprecated some methods, fixed some bugs.