New score function for puzzle 5.'