public function is_out_of_bounds($x, $y)
    {
        return (
            $x < 0 ||
            $y < 0 ||
            $x > ($this->width - 1) ||
            $y > ($this->height - 1)
        );
    }