private boolean isGameOver(Point [] testPoints, Tile clickedTile)
	{
		for(int i = 0; i < 2; i++)
		{
			Point currentPoint = testPoints[i];
			Tile currentTile;
			
			int arrayIndex;
			
			
			//checks to make sure the test point isn't outside the board. 
			if(currentPoint.getXPos() < 0 || currentPoint.getXPos() > (numCols - 1) ||  
			   currentPoint.getYPos() < 0 || currentPoint.getYPos() > (numRows - 1))
			{
				return false;
			}
			
			arrayIndex = currentPoint.getYPos() * numRows + currentPoint.getXPos(); //converts 2d position to 1d index
			
			currentTile = gameBoard[arrayIndex];
			
			if(clickedTile.getState() != currentTile.getState()) //if it doesn't match, can't be 3 in a row
			{
				return false;
			}
		}
		
		//if it makes it out of the for loop that all the points were in the board
		//and they all have the same state so the game is won.
		return true;
	}