implements map drawing
recreate chapter 2 of Test