Update main.cpp

Fixed map out of bounds error; added spacing between every map refresh.