Score counter

Most things work here, but not all. There are still a few bugs. We can either implement NOW, or fix the bugs and then merge.