Removed unneeded //system("pause");