tdg: map drawing.
core: move files.
tdg: little refact.