public function addCell(\Cell $cell) { if ($this->cellExists($cell->getX(), $cell->getY())) { throw new \LogicException('tato bunka j*z na hraci plose existuje'); } $this->cells[$cell->getX()][$cell->getY()] = $cell; }