game scoring refactored using reduce