Linked CSS correctly, debugged some JS

Encapsulated into “updateScore” function