public MOVE[] filterSaneMoves(MOVE[] possibleMoves, Game game, int nodeIndex) {
		ArrayList<MOVE> saneMoves = new ArrayList<MOVE>();
		for (MOVE move : possibleMoves) {
			if (isSane(game, nodeIndex, move))
				saneMoves.add(move);
		}
		return saneMoves.toArray(new MOVE[0]);
	}