Implemented counting the score. Added some styles and fixed js bugs.