update main.cpp

Added the function at end of code to prompt user if they would like to run the program again.