Refactor

1) Move score calculation of root children
2) Prevent unneccessary recalculations