Sets character at coordinates.
void setCharacter(int x, int y, String char) { if (isCellValid(x, y)) { characters[y * width + x] = char; } }