game calculates user's score