private void removePowerToTilesFrom(int col, int row) { for (int i = 0; i < powerPositions.Count; ++i) { int xPos = powerPositions [i].x + col; int yPos = powerPositions [i].y + row; if (xPos >= 0 && xPos < StageScript.numCols && yPos >= 0 && yPos < StageScript.numRows) { PowerManagement.removePower(heroType, (uint)xPos, (uint)yPos); } } }