Refactor play stats file