private int checkNeededActionPoints(JavaCell[][] miniMap, Tile tile) {
		int outsideCount = 1;
		TileType[][] tileCells = tile.getTileCells();

		for (int i = 0; i < tileCells.length; i++) {
			for (int j = 0; j < tileCells[i].length; j++) {
				if (tileCells[i][j] != null) {
					for (int out = 0; out < outerCells.length; out++) {
						if (miniMap[i][j] != null
								&& miniMap[i][j].getElevation() == 0
								&& miniMap[i][j].getX() == outerCells[out]
										.getX()
								&& miniMap[i][j].getY() == outerCells[out]
										.getY()) {

//							System.out.println("i: " + i + "j: " + j);

							outsideCount++;
						}
					}
				}
			}
		}

		return outsideCount;
	}