Add controller method for computing score