Create main.c

Main file. Contains main function and all of the funtions which use the map.