Misc

Added some comments, added updateScore function to try and reuse the
same functionality more as a parameter to forEach