Added ability to work out the score of a grid