private function updateNodeCount(Element $node, int $addToCount): void {
        $currentScore = (int)$node->attr('gravityNodes');

        $node->attr('gravityNodes', (string)($currentScore + $addToCount));
    }