void writeToGrid(int x, int y, String char) { if (x >= 0 && x < _width && y >= 0 && y < _height) { _grid[y][x] = char; } }