Correct map drawing implemented. There may be bugs, but generally it works.