Moved main function for map testing to keep map.c clear of unnecessary code.