Reworked view_map denguecase code, bug still persists. Code is much more
easier to understand now though.