Added the paint functionality to graphicly represent the map