char GetLastColour(int indexX, int indexY) { int x = indexX; IDrawer2D drawer = game.Drawer2D; for (int y = indexY; y >= 0; y--) { string part = parts[y]; char code = drawer.LastColour(part, x); if (code != '\0') { return(code); } if (y > 0) { x = parts[y - 1].Length; } } return('\0'); }