int menu(int &x)
{
cout<<"*******************Paper, Rock, Scissor*******************\n";
cout<<"\nChoose from the following menu:\n1 for Rock -- 2 For Paper -- 3 For Scissors\nYour Entry: ";
cin>> x;
int count = 0;
while (x != 1 || x != 2 || x != 3){
cout<<"please enter a valid x value! Enter 1, 2, or 3: ";
break;}
cin >> x;
while (x < 1 || x > 3 && count < 2){
cout<<"\nPlease enter a 1 for Rock, 2 for Paper, 3 for Scissors: ";
cin>> x;
count++;
if (count > 3){
cout<<"You have run out of attempts to enter a valid input!";
break;}
}
return x;
}