psudocode finished
updated the system("pause")