Got Score function to work