title: Tic tac toe determining a draw
body: <p>I am creating a tic tac toe game and have created the board using a single dimension array. </p>
  
  <p>I have the following code but it returns a true even when the board is still empty and a lot mor emoves can be played. Can someone please tell me where I am going wrong. Thanks</p>
  
  <pre><code>public boolean gameIsADraw() {
      for (int i = 0; i &lt;= 9; i++) {
          if (!board[i].equals(" ")){
              if (gameIsAWin() == false) {
  
              }
              return true;
          }
          }
  
      return false;
  }
  
  public boolean gameIsAWin() {
          for (String s: winningConditions) {
              if (winningSituations(s.charAt(0), s.charAt(1), s.charAt(2)) == true){
                  return true;
              }
          }
          return false;
      }
  </code></pre>