title: Unity 2d win condition , game similar to TicTacToe
body: <p>i'm creating a little game, and I've a problem. 
  Each players have 3 pieces. They've to put their pieces in case , like a Tic Tac Toe board. 
  The victory conditions are same than Tic Tac Toe. But in this game, you only have 3 pieces, and you can move them on the board , and after you placed  yours pieces on the board, one after one.</p>
  
  <p>The pieces can only move from a case to an adjacent case. 
  My problem is for the verification , the victory condition. 
  I've a "Board" , and i wanted to know if i can do thoses victory conditions with the position of the pieces on the board , or i cant ? </p>
  
  <p>Example:  If the 3 allies pieces are in x1,y1 x2 y2, and x3,y3, u have win. 
  Or if the 3 pieces are in 3 others objects, you win.</p>
  
  <p>If u want more information about this, i can told more, so i thought about this tutorial code in Unity, about the Tic Tac Toe, but i didnt used panel. </p>
  
  <pre><code>using UnityEngine;
  using UnityEngine.UI;
  using System.Collections;
  
  public class GameController : MonoBehaviour {
  
  public Text[] buttonList;
  
  private string playerSide;
  
  void Awake ()
  {
      SetGameControllerReferenceOnButtons();
      playerSide = "X";
  }
  
  void SetGameControllerReferenceOnButtons ()
  {
      for (int i = 0; i &lt; buttonList.Length; i++)
      {
          buttonList[i].GetComponentInParent&lt;GridSpace&gt;().SetGameControllerReference(this);
  
      }
  }
  
  public string GetPlayerSide ()
  {
      return playerSide;
  }
  
  public void EndTurn ()
  {
      if (buttonList [0].text == playerSide &amp;&amp; buttonList [1].text == playerSide &amp;&amp; buttonList [2].text == playerSide)
      {
          GameOver();
      }
  }
  
  void GameOver ()
  {
      for (int i = 0; i &lt; buttonList.Length; i++)
      {
          buttonList[i].GetComponentInParent&lt;Button&gt;().interactable = false;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Sorry for my english guys and if my explications are too bad ^^ . </p>