-Change: Allow map sizes up to 4096x4096.
-Fix: update some constants related to map size.