public function character()
{
$rows = [];
$rows[] = ' ' . str_repeat('-', $this->width);
for ($y = 0; $y < $this->height; $y++) {
$row = '|';
for ($x = 0; $x < $this->width; $x++) {
$row .= $this->space($x, $y)->character();
}
$row .= '|';
$rows[] = $row;
}
$rows[] = ' ' . str_repeat('-', $this->width);
return implode("\n", $rows) . "\n";
}