cin >> command;
cout << endl;
if (command == "w" && world[x][y+1] != 9) y = y + 1;
if (command == "s" && world[x][y-1] != 9) y = y - 1;
if (command == "d" && world[x-1][y] != 9) x = x - 1;
if (command == "a" && world[x+1][y] != 9) x = x + 1;
//end
system("cls");
goto start;
load:
cout << "add .txt to the end of save name" << endl;
cin >> save;
ifstream inputFile(save);
string line;
while (getline(inputFile, line))
{
istringstream ss(line);
you are trying to load something in x and y variables before they were declared. Also in some cases xp, maxhp hp and world[][] variables can be used uninitializated too.