Implemented score tracking. This is quite the mess.