Introduce scoring system

Very few lines of code were changed in order to add a way to measure pen^W scores.