Add function to score a map