Implement perfect score. Resolve #112.