public function getTileById(int $tileId) { return isset($this->tiles[$tileId]) ? $this->tiles[$tileId] : null; }