private function updateScore(Element $node, float $addToScore): void {
        $currentScore = (float)$node->attr('gravityScore');

        $node->attr('gravityScore', (string)($currentScore + $addToScore));
    }