title: Any idea on how to make the input for an "exit game" function like this work?
body: <pre><code>void Computer::playerMove(void)
  {
      Features exitGame;
      int x, y;
  
      cout &lt;&lt; &quot;\nPlayer turn! You are X\n&quot;;
      cout &lt;&lt; &quot;________________________\n&quot;;
      cout &lt;&lt; &quot;Enter X Coordinate : &quot; &lt;&lt; endl;
      cin &gt;&gt; x;
      cout &lt;&lt; &quot;Enter Y Coodinate:&quot; &lt;&lt; endl;
      cin &gt;&gt; y;
  
      x--; y--;
   
      if (grid[x][y] != ' ') {
          cout &lt;&lt; &quot;\nSpace is filled/invalid !!\nPlease try AGAIN:\n&quot;;
          playerMove();
      }
      else grid[x][y] = 'X';
  }
  </code></pre>
  <p>I want to make it seem like:
  if user inputs 0, it EXIT's.</p>
  <p>I'm kinda stumped and I can't think of anything else to do, I just want suggestions.
  Thanks.</p>