added a nicer getScore function