Fixed system("Pause")

Fixed the issue regarding the system("Pause"); function