@Override
	public Piece pickNextPiece() {
		int adversaryValue = adversary.getValue();
		if (adversaryValue == 0) {
			okStatus.setText("ok");
			return super.pickNextPiece();
		}
		
		int rand = random.nextInt(99)+1;

		if(rand >= adversaryValue)
		{
			okStatus.setText("ok");
			return super.pickNextPiece();
		}
		else
		{
			okStatus.setText("*ok*");
			Piece worstPiece= null;
			double worseScore =0;

			for (int i = 0 ; i < pieces.length; i++)
			{
				move = brain.bestMove(board, pieces[i], HEIGHT, move);

				if(move==null)
					return super.pickNextPiece();

				if(move.score > worseScore)
				{
					worstPiece = pieces[i];
					worseScore = move.score;
				}
			}
			return worstPiece;
		}
	}