static boolean notSafe(int y)
	  { 
	    int x = board[y]; //column queen is placed in
	    for (int i = 1; i <= y; i++)
	    {
	      int t = board[y - i];
	      if (t == x || t == x - i || t == x + i)
	      {
	        return true;
	      }
	    }
	 
	    return false;
	  }